ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
chown -R mysql:mysql /var/lib/mysql
service mysqld start
mysql> show variables like 'max_connections';
msyql>set global max_connections=1000;
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
chown -R mysql:mysql /var/lib/mysql
service mysqld start
mysql> show variables like 'max_connections';
msyql>set global max_connections=1000;