豆掰娱乐
您的当前位置:首页centosmysql安装

centosmysql安装

来源:豆掰娱乐


1、到官网下载rpm包5.6.22-1.el6.x86_.rpm-bundle.tar解压后里面有各种需要的rpm包

[root@normal mysql]# ll
total 4362
-rw-r--r-- 1 root root 223682560 Jan 5 23:08 MySQL-5.6.22-1.el6.x86_.rpm-bundle.tar
-rw-r--r-- 1 7155 wheel 18574028 Nov 24 12:24 MySQL-client-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 3408128 Nov 24 12:24 MySQL-devel-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 125380 Nov 24 12:24 MySQL-embedded-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 556836 Nov 24 12:25 MySQL-server-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 1954192 Nov 24 12:26 MySQL-shared-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 3969732 Nov 24 12:26 MySQL-shared-compat-5.6.22-1.el6.x86_.rpm
-rw-r--r-- 1 7155 wheel 50951112 Nov 24 12:26 MySQL-test-5.6.22-1.el6.x86_.rpm
2、安装client

[root@normal mysql]# rpm -ivh MySQL-client-5.6.22-1.el6.x86_.rpm 
Preparing... 	########################################### [100%]
	1:MySQL-client ############################################### [100%]
3、在安装server的时候报错:file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.22-1.el6.x86_ conflicts with file from packagemysql-libs-5.1.61-4.el6.x86_。

报了这个错只需要将mysql-libs-5.1.61-4.el6.x86_删了就好

[root@normal mysql]# rpm -e mysql-libs-5.1.61-4.el6.x86_
4、安装server。

[root@normal mysql]# rpm -ivh MySQL-server-5.6.22-1.el6.x86_.rpm 
Preparing... ########################################### [100%]
 1:MySQL-server ########################################### [100%]
显示全文