I am trying to install drupal on a nearlyfreespeech.net

I am getting an error :-

Failed to connect to your MySQL database server. MySQL reports the following message: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).

* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct database hostname?
* Are you sure that the database server is running?

Any ideas?

thanks

Comments

jeffpoulsen’s picture

Donald879,

Did you create a database for your site? Did you edit your /sites/default/settings.php file where the mysql information is needed? Be sure you have the right username, password and database name. This is the most common problem for a drupal install.

Anonymous’s picture

Good things to check.
One point - the installer should edit settings.php, based on credentials you enter on the web form during the install.
if you edit settings.php prior to install, the installer will think you want to update.
That's my experience, anyway.

Hari’s picture

I have gotten errors when installing drupal 6 because I renamed the default.settings.php to settings.php. My mistake was that I needed to copy the default.settings.php, and then rename the copy to settings.php. In this way I have 2 files. The original: default.settings.php & The Copy: settings.php.