rpm -qa | grep mysql

My server comes with mysql, now I uninstall it
rpm -e mysql-libs-5.1.73-8.el6_8.x86_64;//Generally delete, if you are prompted to rely on other files, you cannot delete
rpm -e --nodeps mysql-libs-5.1.73-8.el6_8.x86_64;//Delete forcefully, if there are other dependent files, you can delete them forcefully

yum install -y mysql-server mysql mysql-devel //Mysql,mysql-server,mysql-devel


service mysqld start

chkconfig --list | grep mysqld //Check whether to automatically start mysql at boot

chkconfig mysqld on //turn on

mysqladmin -u root password 'r'

Chinese coding problem, click me
Recommended Posts