Error connecting to mySql

During the initial setup of cPanel I had created the hostname host.georgiaproject.com . I changed the hostname to host.dysartwebs.com .

I am getting this error message

DBI connect('mysql:localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 42 ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 0 / unlimited

When we try to restart SQL I get this error message:
root 7638 0.0 0.0 1976 4 ? S Aug13 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/host.georgiaproject.com.pid

mysql has failed, please contact the sysadmin (result was "/usr/bin/mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)").

It looks as if it is recognizing host.georgiaproject.com for the connection for SQL. Any solutions would be appreciated.

Thanks in advance.
AJ

 

 

 

 

Top