圆月山庄资源网 Design By www.vgjia.com

本文实例讲述了centos6.7安装mysql5.5.48的方法。分享给大家供大家参考,具体如下:

RPM安装mysql 5.5.48

下载对应的MySQL安装包rpm文件,可以去MySQL官方网站找到对应版本,一般需要下载3个文件

MySQL-server
MySQL-client
MySQL-devel

复制代码 代码如下:wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.48-1.el6.x86_64.rpm
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.48-1.el6.x86_64.rpm
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.48-1.el6.x86_64.rpm
rpm -ivh MySQL-server-5.5.48-1.el6.x86_64.rpm
rpm -ivh MySQL-client-5.5.48-1.el6.x86_64.rpm
rpm -ivh MySQL-devel-5.5.48-1.el6.x86_64.rpm
安装服务端出错:
复制代码 代码如下:[root@localhost ~]# rpm -ivh MySQL-server-5.5.48-1.el6.x86_64.rpm
warning: MySQL-server-5.5.48-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.48-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.48-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.48-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.48-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.5.48-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64

错误原因:包冲突了

centos6.7 basic server 版本 默认安装了mysql5.1,所以先卸载mysql5.1
复制代码 代码如下:yum -y remove mysql-libs-5.1*
再重新安装即可
复制代码 代码如下:rpm -ivh MySQL-server-5.5.48-1.el6.x86_64.rpm
启动mysql
复制代码 代码如下:[root@localhost ~]# service mysql start
Starting MySQL SUCCESS!
CentOS下安装官方RPM包的MySQL后找不到my.cnf解决办法

复制 /usr/share/mysql/my-medium.cnf 文件到/etc目录,
复制代码 代码如下:cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
局域网内mysql连接慢的解决办法

ping都很快,mysql连接慢,

原因是由于mysql对连接的客户端进行DNS反向解析。

有2种解决办法:

1. 把client的ip写在mysql服务器的/etc/hosts文件里,随便给个名字就可以了。
2. 在 my.cnf 中加入 –skip-name-resolve 。

希望本文所述对大家centos服务器配置有所帮助。

标签:
centos6.7,安装,mysql5.5.48

圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com