The solution to the mysql error when the computer is turned on: first open “My Computer->Properties->Advanced->Environment Variables” in sequence; 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> # Start the mysql service net start mysql # Stop the mysql service net stop mysql
Prompt message: ‘net’ is not an internal or external command, nor is it an operable program or batch file
Solution:
My Computer–>Properties–>Advanced–>Add the variable value of the environment variable Path: %SystemRoot%\system32 (separated by “;”)
Note:
(1) It is best to open the CMD command line as an administrator.
(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
MySQL service is starting.
MySQL service has been started successfully.
The above is the detailed content of what to do if the mysql error occurs when the computer starts up. For more information, please pay attention to other related articles on 1024programmer.com!