最近在做毕业设计用到mysql。在安装的时候遇到了点问题,把正确的安装步骤记录下来。 环境: OS:Centos6.3(64bit) database:mysql5.6 1、到官网下载rpm包5.6.22-1.el6.x86_64.rpm-bundle.tar解压后里面有各种需要的rpm包 [root@normal mysql]# lltotal 4
最近在做毕业设计用到mysql。在安装的时候遇到了点问题,把正确的安装步骤记录下来。
环境:
OS:Centos6.3(64bit)
database:mysql5.6
1、到官网下载rpm包5.6.22-1.el6.x86_64.rpm-bundle.tar解压后里面有各种需要的rpm包
[root@normal mysql]# ll total 436892 -rw-r--r-- 1 root root 223682560 Jan 5 23:08 MySQL-5.6.22-1.el6.x86_64.rpm-bundle.tar -rw-r--r-- 1 7155 wheel 18574028 Nov 24 12:24 MySQL-client-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 3408128 Nov 24 12:24 MySQL-devel-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 89125380 Nov 24 12:24 MySQL-embedded-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 55688936 Nov 24 12:25 MySQL-server-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 1954192 Nov 24 12:26 MySQL-shared-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 3969732 Nov 24 12:26 MySQL-shared-compat-5.6.22-1.el6.x86_64.rpm -rw-r--r-- 1 7155 wheel 50951112 Nov 24 12:26 MySQL-test-5.6.22-1.el6.x86_64.rpm
[root@normal mysql]# rpm -ivh MySQL-client-5.6.22-1.el6.x86_64.rpm Preparing... <span style="white-space:pre"> </span><span style="font-family: Arial, Helvetica, sans-serif;">########################################### [100%]</span> <span style="white-space:pre"> </span>1:MySQL-client ############################################### [100%]
file
/usr/share/mysql/czech/errmsg.sys from install of MySQL-server-
5.6
.
22
-
1
.el6.x86_64
conflicts with file from
package
mysql-libs-
5.1
.
61
-
4
.el6.x86_64。
报了这个错只需要将mysql-libs-
5.1
.
61
-
4
.el6.x86_64删了就好
[root@normal mysql]# rpm -e mysql-libs-5.1.61-4.el6.x86_64
[root@normal mysql]# rpm -ivh MySQL-server-5.6.22-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:MySQL-server ########################################### [100%]