最近在学习MySQL数据库,看MySQL的使用手册,并练习里边的语句,记录一下常用常见的语句,下边是关于启动和关闭的命令,一定要确定MySQL运行,如果不能运行,则需要启动。
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Windows\System32>mysqladmin -u root -p shutdown
Enter password: ****
C:\Windows\System32>mysqladmin -u root -p start
Enter password: ****
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
Check that mysqld is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'
C:\Windows\System32>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
C:\Windows\System32>net stop mysql
MySQL 服务正在停止.
MySQL 服务已成功停止。
C:\Windows\System32>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22275400/viewspace-1090303/,如需转载,请注明出处,否则将追究法律责任。