RPM方式安装MySQL5.6.30 a. 检查 MySQL 及相关 RPM 包,是否安装,如果有安装,则移除( rpm–e名称) 1 [root@localhost ~] # rpm -qa | grep -i mysql 2 mysql-libs-5.1.66-2.el6_3.x86_64 3 [root@localhost ~] # yum -y remove mysql-libs* b. 下载Linux
RPM方式安装MySQL5.6.30
a. 检查MySQL及相关RPM包,是否安装,如果有安装,则移除(rpm –e 名称)
2
|
mysql-libs-5.1.66-2.el6_3.x86_64
|
b. 下载Linux对应的RPM包,如:CentOS6.6_64对应的RPM包,如下:
3
|
-rw-r--r--.
1 root root 18442536 Dec 11 16:43 MySQL-client-5.6.30-1.linux_glibc2.5.x86_64.rpm
|
4
|
-rw-r--r--.
1 root root 3340660 Dec 11 <span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">
16:43</span> MySQL-devel-<span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">5.6.30-1.linux_glibc2.5.x86<span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">_64</span></span>.rpm
|
5
|
-rw-r--r--.
1 root root 54360600 Dec 11 <span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">
16:43</span> MySQL-server-<span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">5.6.30-1.linux_glibc2.5.x86<span style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:14px; line-height:15.4px">_64</span></span>.rpm
|
c. 安装MySQL
1
|
[root@localhost
rpm] MySQL-server-5.6.30-1.linux_glibc2.5.x86_64.rpm
|
d. 初始化MySQL及设置密码