MySQL command line Login

Source: Internet
Author: User
Tags mysql client mysql version mysql command line
Environment Introduction
Os:centos6.x & Win2003 & Win2008
MySQL version: 5.5.x

In addition to the common MySQL management tools, mysql client command-line tools are often used
1.Linux Installing the command-line tool
(1). Enable the Epel Source:
(2). Install the MySQL command line tool
# # Yum-y Install MySQL
2. Command line Common commands:
#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 logged in, the hostname or IP address is optional, the local connection is not writable, the remote connection must write the IP address and port.
Note:
1. Lowercase-P is passwd, capital-P is port
2. Host name or IP address is optional, local connection is not writable, remote connection must write IP address and port

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MySQL command line Login

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.