I just imported a site from MyKinsta into DevKinsta and once the import completes, I click to open the site and I get the following error.
Warning : mysqli_real_connect(): (HY000/2002): No such file or directory in /www/kinsta/public/therapistcomdev/wp-includes/wp-db.php on line 1653
No such file or directory
I am able to open the Database manager from DevKinsta without issue.
I have searched for posts with similar errors here and no solution was found.
I have tried changing to wp-config file db settings to those found on the site info page in devKinsta
I have restarted all the Docker containers
I have deleted and re-imported the site
I have verified that there is plenty of available disk space on the mariadb docker instance
I have connected to the db with MySQLWorkbench using the credentials and specific port in Site info
This issue started after we had Kinsta support change the document root on the sites themselves. Prior to this change the root had been setup as ‘/providers’ (this is where wordpress was installed) we had the document root changed to ‘/’ and all wordpress files moved up to ‘/’ and now when importing the site I get the above error.
We made the change to the document root entirely because the document root in DevKinsta is set to ‘/’ and changing it in NGINX does not persist. Now we are faced with this issue. Thanks for your assistance.