Command line operation of the local virtual machine database

Based on window operation

Open a command tool begins -cmd (Windows logo + R)

Enter installed under mysql folder (where path must be on)

Note: If your mysql is not installed in the C drive, you need to use a DOS command to enter the bin directory under the mysql installation directory, as I was F: \ wamp \ bin \ mysql \ mysql5.6.17 \ bin

Enter into the -p mysql -hlocalhost -uroot

Then enter the password, there is no direct carriage

 

This will enter the local database, the database can be operated

View all databases: show databases;

 

Guess you like

Origin www.cnblogs.com/studycollect/p/11238989.html