troubleshooting Question

WordPress Website MySQL connection Problem

Avatar of Pete Long
Pete LongFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPMySQL ServerWordPress
9 Comments1 Solution686 ViewsLast Modified:
Centos VPS running Mysql 5.1

1 site running perfectly under an SQL account created when the site was built.

Created a new database with a new account and gave the account full privileges. Then installed WordPress and got the cannot connect to database error.

Then I created a new user, and also gave it access to the new database, same issue.

Then tried to use the account that works on the perfectly working site, and then get an issue saying “cannot select database”. Gave a working user account full privileges on new database and then get the “cannot connect to database error”

Logging into the VPS I can connect to MySql and create tables in the database will all users created. It appears to be an issue with the websites or PHP connecting to the databases?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros