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