The solution is probably staring me in the face, but for now it eludes me!
I am moving one of my blogs to a new host. For some reason, I can't get it to connect to the database. As far as I can tell, I have setup the wp-config file correctly to match the user and password in mysql.
I get the following error message:Error establishing a database connectionHere is what I put in my wp-config file:
If you don't see anything wrong with those settings, here are some other questions:// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'accountname_dbname');
/** MySQL database username */
define('DB_USER', 'accountname_username');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
- When I go into phpMyAdmin, it says the user is username@localhost. I tried just using the username in wp-config, but that didn't work either. Is there a way to test the mySQL login outside of Wordpress?
- Do I need to get new Authentication Unique Keys for this blog on the new host, or can I use the old ones?
- Any other questions?
Thanks, Mike
Bookmarks