MySQL command line login _ MySQL

Source: Internet
Author: User
Environment introduction OS: CentOS6XWin2008MySQL version: 55x in addition to common MySQL management tools, MySQL client command line tools are often used to install the command line tool in 1 Linux (1) enable epel Source: (2) introduction to installing MySQL command line tool y environment
OS: CentOS6.X & Win2003 & Win2008
MySQL version: 5.5.x

In addition to common MySQL management tools, MySQL client command line tools are often used.
1. install the command line tool in Linux
(1) enable epel Source:
(2) install the MySQL command line tool
# Yum-y install mysql
2. common command lines:
# Mysql -- help


3. instance syntax:
Mysql-u root-pxxxxx-h 127.0.0.1-P 23306
Mysql-u User name [-h host name or IP address]-p password
Note: the user name is the user you log on to. the host name or IP address is optional. the local connection is not allowed, and the IP address and port must be used for remote connection.
Note:
1. lowercase-p is passwd, and uppercase-P is Port
2. the host name or IP address is optional. the local connection cannot be written, and the IP address and port must be written for the remote connection.

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.