MySQL command line Logon

Source: Internet
Author: User


MySQL command line logon environment: MySQL Sever 5.1 + MySQL command line tool problem: MySQL command line logon solution: Command Line logon Syntax: mysql-u user name [-h host name or IP address]-p password Description: the user name is your login user, the host name or IP address is optional, if it is a local connection is not required, for remote connection, enter the password corresponding to the user. Note: www.2cto.com 1. this command is executed in the Windows command line window, instead of the MySQL command line; 2. after you enter-p, you can keep up with the password directly, or press enter, and you will be prompted to enter the password, both of which have the same effect; 3. -The p password option is not necessarily at the end; 4. -u,-h, and-p are not followed by spaces. Example: [SQL] -- local connection to mysql-uroot-p -- remote connection to mysql-uwgb-hXXX. XXX-p

Reference: MySQL database command line tool
Http://www.bkjia.com/database/201209/154378.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.