Solution to the MySQL error that occurs when the computer is turned on: First, open "My Computer->Properties->Advanced->Environment Variables"; then add the variable value of Path to "%SystemRoot%\ system32"; finally restart the mysql service.
Recommendation: "mysql video tutorial"
Windows started MySQL error
C:\Program Files\mysql-5.7.10-winx64\bin> # 启动mysql服务 net start mysql # 停止mysql服务 net stop mysql
Prompt message : 'net' is not recognized as an internal or external command, operable program or batch file
Solution:
My Computer-->Properties-->Advanced- ->The variable value of the environment variable Path is newly added: %SystemRoot%\system32 (separated by ";")
Note:
(1) It is best to be an administrator Open the CMD command line.
(2) After the modification is completed, you need to reopen the cmd command line, otherwise it will not take effect.
(3) It is easy to use in "%SystemRoot%\system32"
C:\Users\Administrator>net start mysql
The MySQL service is starting.
The MySQL service has been started successfully.
The above is the detailed content of What should I do if a mysql error occurs when the computer is turned on?. For more information, please follow other related articles on the PHP Chinese website!