adam <[EMAIL PROTECTED]> writes:

> I am having trouble with mysql... i keep getting 
>  "ERROR 2002: Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)"

You probably didn't start it the correct way, by using the included
initscript ("/etc/init.d/mysqld", also usable by "service mysqld
<argument>" (start, stop etc)). This is also what would have been used
had you used tksysv, ntsysv or chkconfig to turn the service on.

If you use the "mysql_install_db" as root and then use "safe_mysqld",
you'll try to run the database as user mysql - but root will own the
files. "chown -R mysql.mysql /var/lib/mysql" should fix the problem.

-- 
Trond Eivind Glomsrød
Red Hat, Inc.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to