Under centos6.5 yum mounted mysql5.5

Under centos6.5 yum mounted mysql5.5

 

 

first step

After command: RPM -qa | grep MySQL     

View the next centos installed mysql5.1

If you install it uninstall command: RPM -e MySQL-libs - nodeps

The second step

After yum in mysql5.1, or 5.1 installation is now going to add a new repo

rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm

Need to increase the total of two repo, now add another

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

third step

Now to see whether some of the increase is successful,

yum --enablerepo=remi,remi-test list mysql mysql-server

Check yum whether there is a mysql5.5

The fourth step (fifth step may be performed first, if the installation fails! Restarted from the second step in the installation)

Configuration: into /etc/yum.repos.d mysql-community.repo edit file directory, enabled is set to 0

Command: vim /etc/yum.repos.d/mysql-community.repo

 

# Enable to use MySQL 5.6

[mysql56-community]

name=MySQL 5.6 Community Server

baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/

enabled = 0 (where the need to modify)

gpgcheck=1

gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

the fifth step

 

安装 yum --enablerepo=remi,remi-test install mysql mysql-server

The following figure appeared, this time we must choose y

 

Step Six

Next you need to start clicking mysql

Command: /etc/init.d/mysqld start

 

The following command set the boot from the start, the province every time we went to turn what started the mysql.

命令: chkconfig --levels 345 mysqld on

 

 

To enable MySQL security settings, enter the following command

 

Command: / usr / bin / mysql_secure_installation

 

 

 

 

 

 

Here is necessary to verify mysql whether the installation was successful

Command: mysql -uroot -p set their own password

 

 

Guess you like

Origin www.cnblogs.com/qituanjie/p/12017285.html