MySQL Windows下關閉和啟動

genweihua發表於2014-02-25
        最近在學習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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章