Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u010996565/article/details/83959535
CentOS installation Mysql (detailed tutorial)
When we install linux, the system will default to help us install a Mysql
First we need to delete the default installation of mysql
First come under inquiry
rpm -qa | grep mysql
You can see the default mysql Now we need him to delete
rpm -e mysql-libs-5.1.66-2.el6_3.i686 --nodeps
After deleting Here we have two mysql installation package is a service of another client
The package needs of the students in the following download
Links: https://pan.baidu.com/s/1SBLaUylD0wdtmY4iDjPrsA extraction code: mpkv
Let's install Service
rpm -ivh MySQL-server-5.5.31-2.el6.i686.rpm
Then install the client again
rpm -ivh MySQL-client-5.5.31-2.el6.i686.rpm
After installation is complete, we have to start mysql
cd /etc/rc.d/init.d
service mysql start
Here we need to reset the password for mysql
Cd /
/usr/bin/mysql_secure_installation
选项都选择Y
After the reset is completed we test it
to enter mysql
mysql –uroot –p
show databases