The cmd,windows command prompt (cmd.exe) is a shell program under Windows NT for running Windows Control Panel programs or some DOS programs, or only for shell programs that run Control Panel programs under Windows CE. Of course, this explanation is Baidu Encyclopedia, these orders are also I need to use the time to search, write down a note.
Login Mysql:mysql-u Root-p, cannot connect to server, MySQL server does not start
So start MySQL server first, then--God, forget the MySQL server name,
OK, you can check the service name of MySQL by "service". God, service in where also forget ~ can't find ~
There are three ways to find a service (I like to use the first type)
First, left-click the Start menu in the bottom left corner, service service in the search box, and then tap services to go to view local services.
Second, windows+r, enter "Services.msc" in cmd, then click ' Confirm ', also go to view Local Service
Third, click the Start menu, click Control Panel, click Administrative Tools, and then double-click Services, or you can go to view local services
Start MySQL server: net start MySQL
Then log in to MySQL successfully
Quit MySQL and stop service after using MySQL
cmd--log in to MySQL