Install MySQL5.5.48 in RPM Mode Under CentOS 7.0
The environment is CentOS7.0, the yum source is updated, and MySQL5.7 is installed first, but the initial password problem is not solved after one afternoon. The project progress is very tight, so you simply need to repeat MySQL5.7. It was finally installed today. The following are the basic steps: (skip this step)
1. Uninstall the original mysql
1 # List Installed mysql 2 rpm-qa | grep mysql
1 # Kill the listed items 2 rpm-e [item1] 3 rpm-e [item2] 4 rpm-e [item3]
Because 5.7 is based on mariadb, you must also uninstall it:
1 # List 2 rpm-qa | grep mariadb
1 # uninstall 2 rpm-e mariadb-devel-5.5.44-2.el7.centos.x86_ 643 rpm-e mariadb-libs-5.5.44-2.el7.centos.x86_64
Delete related folders
Find/-name mysql # Delete the listed folders one by one.
2. Download MySQL (RPM Bundle)
The address does not necessarily exist, so it is safer to copy it on the official website. MySQL Community Server is found on the official website, and platform is selected for Linux-Generic.
Note that you need to select this RPM Bundle. Other versions are compiled and installed, and only the RPM Bundle is included. Click Dowlaod to go to the next page:
Copy the No thanks link address as needed.
3. Install MySQL5.5.48
Return to linux and use the copied address:
mkdir /usr/local/src/mysqlcd /usr/local/src/mysqlwget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-5.5.48-1.linux2.6.x86_64.rpm-bundle.tar
Download completed, tar-xf MySQL-5.5.48-1.linux2.6.x86_64.rpm-bundle.tar
Ls should be able to see the following:
Install client devel server in sequence (community-release is also installed)
The following error is reported several times during installation:
error: Failed dependencies: libc.so.6 is needed by MySQL-client-5.5.48-1.linux2.6.i386 libc.so.6(GLIBC_2.0) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libc.so.6(GLIBC_2.1) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libc.so.6(GLIBC_2.1.3) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libc.so.6(GLIBC_2.2) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libc.so.6(GLIBC_2.3) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libdl.so.2 is needed by MySQL-client-5.5.48-1.linux2.6.i386 libdl.so.2(GLIBC_2.0) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libdl.so.2(GLIBC_2.1) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libm.so.6 is needed by MySQL-client-5.5.48-1.linux2.6.i386 libm.so.6(GLIBC_2.0) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libncurses.so.5 is needed by MySQL-client-5.5.48-1.linux2.6.i386 libpthread.so.0 is needed by MySQL-client-5.5.48-1.linux2.6.i386 libpthread.so.0(GLIBC_2.0) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libpthread.so.0(GLIBC_2.1) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libpthread.so.0(GLIBC_2.2) is needed by MySQL-client-5.5.48-1.linux2.6.i386 libpthread.so.0(GLIBC_2.3.2) is needed by MySQL-client-5.5.48-1.linux2.6.i386 librt.so.1 is needed by MySQL-client-5.5.48-1.linux2.6.i386 librt.so.1(GLIBC_2.2) is needed by MySQL-client-5.5.48-1.linux2.6.i386
error: Failed dependencies: libaio.so.1 is needed by MySQL-server-5.5.48-1.linux2.6.i386 libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.5.48-1.linux2.6.i386 libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.5.48-1.linux2.6.i386
After sorting out, basically install the following dependencies (if the yum source does not have these packages)
1 yum -y install glibc.i6862 yum -y install libncurses.so.53 yum -y install libaio.so.14 yum -y install libz.so.1
After the installation is complete, try to install MySQL5.5 again. This time no problem occurs:
1 rpm-ivh MySQL-server-5.5.48-1.linux2.6.i386.rpm 2 rpm-ivh limit 3 rpm-ivh limit 4 rpm-ivh mysql57-community-release-el7-7.noarch.rpm5 # The following is not necessarily 6 rpm-ivh limit 7 rpm-ivh limit 8 rpm-ivh limit 9 rpm-ivh MySQL-test-5.5.48-1.linux2.6.i386.rpm
Start:
service mysql start
Here I encountered a problem. It seems that the original mysql process was not completely killed. I used ps-ef | grep mysql and kill the listed processes, it starts successfully.
Test:
Perfect !!
This article permanently updates the link address: