Home  >  Article  >  Database  >  How to open mysql with command?

How to open mysql with command?

青灯夜游
青灯夜游Original
2020-10-06 08:02:2912301browse

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 open mysql with command?

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

How to open mysql with command?

Secondly, enter "cmd"

How to open mysql with command?

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

How to open mysql with command?

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

How to open mysql with command?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn