Basic MySQL Setup Question


#1

I’m setting a Drupal installation but getting an error when Drupal attempts to connect to the SQL database I’ve created.

I have database name = "something_d6"
user = "someuser"
hostname: “mysql.dev.mydomain.com

But attempting to connect using localhost are failing. Have tried writing out the hostname as well (not using ‘localhost’) but that fails too. I’ve set the allowable hosts to be the domain name.

Error message:

Failed to connect to your MySQL database server. MySQL reports the following message: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2).

I’m sure there’s something obvious I’m overlooking. Anyone have a suggestion?

Thanks!


#2

Weird… Waited a half hour and tried again and now it works.

I guess there is a delay.


#3

Probably the wait time for your sql.domain.com pointer to update locally.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost