EPrints Technical Mailing List Archive
Message: #00631
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Connecting to generated MySQL databases & searching by divisions with EPrints API
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Connecting to generated MySQL databases & searching by divisions with EPrints API
- From: "Berry, Rob" <Robert.Berry@liverpool.ac.uk>
- Date: Fri, 25 May 2012 10:57:33 +0000
Hey, Two quick queries: # Connecting to MySQL databases I've been trying to connect to the one of the MySQL databases generated by EPrints, as created through the Debian repository. I'm using the details from /archives/<archive_name>/cfg/cfg.d/database.pl. However, MySQL returns the following: robert@robert-uol:~$ mysql -u test -p Enter password: ERROR 1045 (28000): Access denied for user 'test'@'localhost' (using password: YES) Is there something I'm missing? The reason I wanted to actually do this is to check what data is in the database itself, as I was having another problem, detailed below. # Searching by divisions with the EPrints API I'm writing a script at the moment to move all prints from within one division into another. I have a function that is supposed to look up all prints in a given division (which I am passing as a string): https://gist.github.com/2787296 However, iterating through all the divisions in the subjects file, this function always returns a result set of zero prints. Is there something I'm doing wrong? Or is this something to do with the test data imported into EPrints 3? (This is why I wanted to have a look at the data on a database level.) Thanks for your time! Best wishes, Rob
- Follow-Ups:
- [EP-tech] Re: Connecting to generated MySQL databases & searching by divisions with EPrints API
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Connecting to generated MySQL databases & searching by divisions with EPrints API
- Prev by Date: [EP-tech] Re: Unicode characters rendering in IE
- Next by Date: [EP-tech] Re: Connecting to generated MySQL databases & searching by divisions with EPrints API
- Previous by thread: [EP-tech] Unicode characters rendering in IE
- Next by thread: [EP-tech] Re: Connecting to generated MySQL databases & searching by divisions with EPrints API
- Index(es):