Connection to database problem,messega is Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Connection to database problem,messega is Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) |
im having the same error message after installation. Any clues anyone? |
Make sure to use this format for both Database name and Username fields. . The correct names can be found in your cpanel - MySQL Databases - Current Databases. . Database Name ='username_databasename'; . Make sure you have added permissions to the database user. . Open header.inc.php look for . $db['host'] = 'localhost'; . Hope it helps. |
thanks. I fix it just typing in the field the full path of my database host (the internal path). I didnt need to edit the inc file. just type your (db#####.hosting.com) and voila. |