Help - Search - Members - Calendar
Full Version: DBI connect ERROR
The Planet Forums > Control Panels > cPanel/WHM
FaS
Hi,
i think im having problems since i change hostname.

when i create a new acount theis messages appears,
and when i enter to the acount control panel appers that:

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 0 / unlimited

please, any idea?

also im recibing this emails when rebooting:

apache failed @ Fri Aug 15 22:57:35 2003. A restart was attempted automagicly.

bind failed @ Fri Aug 15 22:57:35 2003. A restart was attempted automagicly.

mysql failed @ Fri Aug 15 22:57:35 2003. A restart was attempted automagicly.

thx
serverdummy
This is a little late, but look in /etc/my.cnf and see where the mysql.sock is placed. Then create a symlink from there to /var/lib/mysql/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.