mysql test, configure the environment mysql 'is not an internal or external command, operable program or batch file.

Reference Links : https://www.cnblogs.com/ios9/p/9713388.html

1. Set the environment variable:

       Right-click on My Computer -> Properties -> Advanced System Settings -> Environment Variables -> System Variables -> Path Lane add "; C: \ Program Files \ MySQL \ MySQL Server 8.0 \ bin", in fact, It is mysql.exe folder. After determining the like. But found or not, look at the original but also allow CMD to run as an administrator

Note: check path delete the contents of the relevant path mysql, be careful not to delete the other programs, be careful.

 

2.CMD Run as administrator.

Do not press win + R key combination, there can not be an administrator to run the election. In the search field, enter cmd in the Start menu, right-click the option appears, choose Run as administrator. After you enter the command -u username -p password   

mysql -uroot -p1234

 

 

Guess you like

Origin www.cnblogs.com/xdd1997/p/11998894.html