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?