MySQL server problem after linking (mysql.sock)
Hi everybody,
when I execute this command as a su:
mysql --user=root --password resourcedb
I encounter this problem
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/
mysql/mysql.sock' (111)
I wanted to use my home directory as the repository for my database, so
I created a link between /var/lib/mysql/ with my /home/mysql/data file
with: ln -s /var/lib/mysql /home/edward/mysql/data
preceded by: chown -Rf mysql:mysql data
And in my /home/mysql/data directory contain these file
links_db/ localhost.err mysql.sock=
links_db2/ localhost.pid /resourcedb mysql@
And I am using Linux-Mandrake
Any idea how can I solve this problem?
Thanks so much for your time.
Regards
Edward
SINGAPORE
|