FAQ Item

« Return to FAQ database

Connect failed: No such file or directory

If you get this error message please send in a support ticket and we can assist with database connection. 

Sometimes the hosting account is incorrectly configured and you will need to manually add the MySQL socket details into the connection string like this:

self::$dbcnx = mysqli_connect(_DB_SERVER,_DB_USER,_DB_PASS,_DB_NAME,null,'/tmp/mysql5.sock');

We can assist with this change or please contact the hosting provider and ask them to correctly set the MySQL socket file in the php.ini settings.

dtbakerFAQ Item