How to open mysql with command: 1. Use the "win r" shortcut key to open the "Run" window; 2. Enter "cmd" in the "Run" window and press Enter to open the cmd command window; 3. , enter the "mysql -u root -p" command and press Enter; 4. Enter the password, hide it and press Enter.
How to start mysql using the command line
First, use the shortcut keys, and at the same time Press and hold win R on the keyboard
Secondly, enter "cmd"
Again, enter "mysql -u root -p ", u represents the user name, p represents the password. What is shown here is the root user name, that is, the local account
Finally, enter the password, which will be displayed implicitly. Of course You can also enter the password at the end of the third step, that is, mysql -u root -p password
Recommended tutorial: mysql video tutorial
The above is the detailed content of How to open mysql with command?. For more information, please follow other related articles on the PHP Chinese website!