[TC] Gaming Forums
Wordpress can't connect to mysql? - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: General Information (/forumdisplay.php?fid=1)
+--- Forum: General Discussions (/forumdisplay.php?fid=4)
+---- Forum: Help Requests & Technical Support (/forumdisplay.php?fid=9)
+---- Thread: Wordpress can't connect to mysql? (/showthread.php?tid=2833)



Wordpress can't connect to mysql? - mogey5101 - 2012-04-13 00:59

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


RE: Wordpress can't connect to mysql? - mogey5101 - 2012-04-14 03:49

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.


RE: Wordpress can't connect to mysql? - Chuck - 2012-04-14 06:32

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.


RE: Wordpress can't connect to mysql? - mogey5101 - 2012-04-16 01:06

(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.


RE: Wordpress can't connect to mysql? - Chuck - 2012-04-16 06:31

(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/


RE: Wordpress can't connect to mysql? - mogey5101 - 2012-05-03 22:50

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!