MySQL命令行登陆_MySQL

WBOY
Release: 2016-06-01 12:59:39
Original
1218 people have browsed it

环境介绍
OS:CentOS6.X & Win2003 & Win2008
MySQL版本:5.5.x

除了常用的MySQL管理工具,还有MySQL客户端命令行工具常常被用到
1.Linux下安装命令行工具
(1).启用epel源:
(2).安装MySQL命令行工具
## yum -y install mysql
2.命令行常用命令:
#mysql --help


3.实例语法:
mysql -u root -pxxxxx -h 127.0.0.1 -P 23306
mysql –u用户名 [–h主机名或者IP地址] –p密码
说明:用户名是你登录的用户,主机名或者IP地址为可选项,本机连接可不写,远程连接必须写IP地址和端口。
备注:
1.小写-p是passwd,大写-P是Port
2.主机名或者IP地址为可选项,本机连接可不写,远程连接必须写IP地址和端口

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!