Able to access website but not wp-admin
-
I just migrated my WordPress installation from one server to another. When I go to
/wp-admin/, it says that I need to upgrade the database, which I do. When I press continue, it saysWarning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1653
No such file or directoryThis tells me that previously, it could connect to the mysql database, and subsequently not any more? I can access the main website just fine, so it seems that only
wp-adminis having issues connecting.I have tried to change
DB_HOSTfromlocalhostto127.0.0.1, but then it reportsConnection Refused, which I guess is a result of usingmysql_secure_installation?mysqli.default_socket = /var/run/mysqld/mysqld.sockis set in my PHP-FPM configuration file, so it should know where to find the MySQL socket.I am very perplexed and would appreciate any help or advice! Thanks in advance!
The topic ‘Able to access website but not wp-admin’ is closed to new replies.