How to change mysql.sock?
问题 I have installed mysql through binary installation and followed below steps http://dev.mysql.com/doc/refman/5.0/en/binary-installation.html Right now sock files are craeted on /tmp/mysql.sock when mysql service is started. I want to know which configuration files need to be edited to change the path of mysql.sock I tried the following steps to change mysql.sock path from /tmp/mysql.sock to /var/lib/mysql/mysql.sock 1.I tried to enter socketpath in /etc/my.cnf socket =/var/lib/mysql/mysql.sock