[TC] Gaming Forums

Full Version: Wordpress can't connect to mysql?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I recently upgraded to Mysql 5.5 and PHP 5.4, however I also reinstalled mysql and cleared out my database, I did import the database for the forums and WP from an sql file. http://mrkdgaming.com/site/ - the wordpress site gives this error "Error establishing a database connection".

The forums can connect fine though, http://mrkdgaming.com/forum/

Even a small test script can connect fine, http://mrkdgaming.com/test.php. I do have username, and database information entered correctly. Any help?

One other thing to note, MySQLi and MySQL extensions are both enabled in the PHP.ini
Sorry for the bump, this problem is unresolved, however I think I know whats wrong. PHP 5.4 nor MySQLi are supported by wordpress, not allowing it to work.
Well, check the wp-config.php. Wordpress might use a dedicated user to access the database which you did not copy over. Users are not part of the wordpress-database, they are all stored once per server. Hence, you might have have forgotten to copy them over.
(2012-04-14 06:32)Chuck Wrote: [ -> ]Well, check the wp-config.php. Wordpress might use a dedicated user to access the database which you did not copy over. Users are not part of the wordpress-database, they are all stored once per server. Hence, you might have have forgotten to copy them over.

As in a mysql user? If so, I changed the wp-config to use root for testing to get everything working. However it still would not work. Mysql connections are fine and allow simultaneous connections. Was talking to a friend of mine and he said that wordpress is very deprecated but still strives. I can't find a page with requirements and I'm not sure if it supports PHP 5.4 or MySQL 5.5.
(2012-04-16 01:06)mogey5101 Wrote: [ -> ]As in a mysql user? If so, I changed the wp-config to use root for testing to get everything working. However it still would not work.
How so?
(2012-04-16 01:06)mogey5101 Wrote: [ -> ]Mysql connections are fine and allow simultaneous connections. Was talking to a friend of mine and he said that wordpress is very deprecated but still strives. I can't find a page with requirements and I'm not sure if it supports PHP 5.4 or MySQL 5.5.

That's just blatantly wrong. Wordpress is one of the (if not *the*) mostly used software for Blogs and similar things, and is constantly being developed. Don't blame it if you just forgot to create a user Wink

Also: http://wordpress.org/about/requirements/
Late reply, not sure what was wrong with my past install. Reinstall WP and its working fine now. Glad I didn't have to switch over to something else. Thanks!
Reference URL's