Basic MySQL Setup Question

Basic MySQL Setup Question

Posted by: swortis
Posted on: 2009-02-10 13:29:00

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!

Edited by swortis on 02/10/09 01:32 PM (server time).

Re: Basic MySQL Setup Question

Posted by: swortis
Posted on: 2009-02-10 13:35:00

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

I guess there is a delay.

Re: Basic MySQL Setup Question

Posted by: sXi
Posted on: 2009-02-10 23:59:00

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




How To Install PHP.INI / ionCube on DreamHost

Tags: mysql database servermysql setupsetup questionmysql server through socketlocal mysql server through socketdatabase namelocalhostserver mysqlserver timesql databaseerror messagehostsdomain namesuggestion