MySQL user can’t access database to install WordPress
-
I’m installing WordPress on CentOS. I’ve created a MySQL user and granted (I thought) the necessary permissions to install WordPress but I’m clearly doing something wrong because I get the infamous, “Error establishing a database connection” message. When I supply the MySQL “root” user and the password in the wp-config.php file, the /wp-admin/install.php page displays with no problem.
I’ve created my user by:
mysql -u root -p
CREATE user wpuser@localhost IDENTIFIED by ‘Rt\HdABkJEZ-h,N’;
GRANT ALL PRIVILEGES ON wpdatabase.* TO ‘wpuser’@’localhost’;
FLUSH PRIVILEGES;
EXITAny thoughts on why “root” works, but “wpuser” does not?
Ed
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘MySQL user can’t access database to install WordPress’ is closed to new replies.