1. 程式人生 > >mysql本地服務啟動不了的解決辦法

mysql本地服務啟動不了的解決辦法

1、錯誤資訊

C:\Windows\system32>net start mysql
The MySQL service is starting.
The MySQL service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
2、解決辦法

1)刪除mysql安裝主目錄下的data目錄下所有檔案

2)之後兩行命令

mysqld --initialize 

mysqld --initialize-insecure 


3、修改root使用者密碼

1)通過root無密碼登入mysql

mysql -u root -p

password:直接回車

2)修改root使用者密碼

update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';

3、 參考連結

錯誤參考連結:http://stackoverflow.com/questions/34448628/after-install-mysql-doesn-start-windows10-source-install

安裝配置mysql參考連結:

1)http://www.cnblogs.com/testway/p/mysql.html

2)http://www.jianshu.com/p/832f348064cd