anaigini
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Customized wordpress installationIt turns out that in wp_config.php, DB_HOST has to be ‘127.0.0.1’ instead of localhost.
I am sure there is a better way to address this, but I haven’t tried it.Forum: Fixing WordPress
In reply to: Customized wordpress installationHi,
I managed to resolve pt 2, now the PHP page displays PHP details.
However I have been stuck in the “Error establishing a database connection” for some time now, and after checking so many things, still not able to resolve the problem.
This is the full error displayed on the page :Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down. Are you sure you have the correct username and password? Are you sure you have typed the correct hostname? Are you sure the database server is running? If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.I checked that my server is listening to the mysql port 3306, I can see the maridb process running, and I can even login to the database. The wp-config.php as all the details matching the db, ie DB_USER, DB_NAME, DB_PASS, DB_HOST. DB_HOST is localhost. I did not put the server domain name.
The final thing I did was to reset the DB PASS to a stronger one. I then restarted mysql and httpd, and still same error.
And I enabled debugging for wp_config.php. So I believe the logs will be generated in wp-content/debug.log if there is a problem loading http://myserverip/wp-admin/install.php correctly? Well, I don’t see anything generated here even when the page fails to load correctly.
How do proceed?
- This reply was modified 6 years, 3 months ago by anaigini.