[CentOS] Starting MySQL

Craig White craigwhite at azapple.com
Sat Jan 27 17:27:40 UTC 2007


On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
> When I run
> 
> # mysql
> 
> I get this error:
> 
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
> '/var/lib/mysql/mysql.sock' (2)
> 
> What do I need to do?  The install of MySQL was done as part of the 
> Centos setup.
----
as root...

/sbin/service mysqld start

socket isn't available for connection unless mysqld is running

Craig




More information about the CentOS mailing list