15个mysql使用管理命令- alon - 博客园
mysql> 2. How to check whether MySQL Server is up and running? # mysqladmin -u root -p ping. Enter password: mysqld is alive3. How do I find out what version of MySQL I am running? Apart from giving the 'Server version', this command . ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'Note: You can also use “/etc/rc.d/init.d/mysqld stop” to shutdown the server. To start the server, execute “/etc/rc.d/init.d/mysql start”
Source: http://www.cnblogs.com/alon/archive/2010/01/21/1652849.html





