Home  >  Article  >  Database  >  centos6 install mysql client

centos6 install mysql client

高洛峰
高洛峰Original
2016-11-21 17:56:331604browse

Check the operating system version

cat /etc/redhat-release

This command will check whether mysql data has been installed on the operating system

rpm -qa | grep mysql

[root@larry ~]# rpm -e mysql  // 普通删除模式 
[root@larry ~]# rpm -e --nodeps mysql  // 强力删除模式,如果使用上面命令删除时,提示有依赖的其它文件,则用该命令可以对其进行强力删除

Installed through yum

[root@ren ~]# yum list | grep mysql

:

yum install -y mysql-deve

Connect:

mysql -hRDSurl地址 -u账户 -p密码 -P3306


Statement:
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