This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11349|Reply: 1

[Source] Connect to mysql via the cmd command

[Copy link]
Posted on 6/2/2015 9:24:29 PM | | | |
To connect mysql through the cmd command window, just type mysql -uroot -p123456 in the command line. 解决办法是在环境变量的path路径下加入 C:Program FilesMySQLMySQL Server 5.6in。
As shown below:

After configuring mysql to the environment variable, enter "mysql -uroot -p123456" in the command window of cmd. As shown below:

At this point, you can connect to mysql through the cmd commanddatabase. Note that -u is followed by the username connecting to the database, without spaces. -p is followed by the connection password, and there is no space either.
The command is:mysql -uroot -p123456
If you add a semicolon after the command, the following will appear:
C:UsersAdministrator>mysql -uroot -p123456;
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
The solution is not to add semicolons.





Previous:asp.net refresh this page with a summary of the six methods
Next:Share a sentence jsp version of Nethorse for kitchen knife connection
Posted on 6/18/2015 6:06:56 PM |
learned.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com