In installed WordPress on my home server about a week ago with no trouble. I had Gallery2 installed and working on the same server. After the WP installation, I could not access Gallery2 (access denied error). To access Gallery2, I entered the following command:
$ mysql gallery2 -uroot -e"GRANT ALL ON gallery2.* TO username@localhost IDENTIFIED BY 'password'"
Gallery2 is now working, but WP is broken. WP says:
Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
How do I access my blog (which has content I want to keep) without breaking Gallery2 again? Can I use the same mysql username and password for both installations?