MySQL Forums
Forum List  »  Newbie

Re: Can't connect to mysql server fffffor Wordpress. -Just stopped.
Posted by: jon gore
Date: March 06, 2023 11:36PM

If you see a "404 Requested URL not found" error, your web server might be set up incorrectly or your WordPress files could be missing. Here are some steps to help you troubleshoot the problem:

1- Check Apache2 status: Use the command "systemctl status apache2" to verify if the Apache2 web server is running. If it's not, start it with "sudo systemctl start apache2".

2- Check WordPress files: Go to "/var/www/html/" and ensure that you see all the WordPress files and directories. If any are missing, reinstall WordPress or restore them from backup.

3- Check WordPress configuration: Verify the database name, username, and password in the "wp-config.php" file. Try changing the database host from "localhost" to "127.0.0.1" or the MySQL server IP address.

4- Check MySQL database: Log in to MySQL with "mysql -u root -p" and check if the WordPress database user and correct host are listed with "SELECT user,host FROM mysql.user;". If the database doesn't exist, create it with "CREATE DATABASE wordpress_db;" (replace "wordpress_db" with your database name).

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't connect to mysql server fffffor Wordpress. -Just stopped.
March 06, 2023 11:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.