Error establishing a database connection
-
Hey everybody, since yesterday I’ve been having the ‘Error establishing a database connection’ problem. I’ve looked it up online and mostly advice says to modify we wp-config.php file, and I’ve done so, by cheching the credentials (which were fine because I never modified them before) and to add the define( ‘WP_ALLOW_REPAIR’, true ); line at the end, which did nothing.
When I enter http://localhost/phpmyadmin/index.php URL I get the following errorsmysqli_real_connect(): (HY000/1130): Host ‘localhost’ is not allowed to connect to this MariaDB server
The connection for controluser, as defined in config, failed
phpMyAdmin tried connecting to the MySQL server and the server rejected the connection. You should revise the host, the username and password in config.inc.php and make sure they match the info provided by the admin of the MySQL server.
So I’m wondering if theres any other ways to fix it and if you know why I’m having said problem, as I’ve never touched my DB info nor am I currently using it, as I’m just starting to make the page (I’m still at the localhost environment)
Thanks for your help, I really need, if you need any more info, let me know!
The topic ‘Error establishing a database connection’ is closed to new replies.