Use fin inquiries about whether there mysql.sock
find / -name mysql.sock
Found, then create a soft link pointing directly to /tmp/mysql.sock
ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock
Use fin inquiries about whether there mysql.sock
find / -name mysql.sock
Found, then create a soft link pointing directly to /tmp/mysql.sock
ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock