版本:MySQL 5.5.29-1.el6
1. 下载。
2. 安装MySQL-server。
rpm -ivh MySQL-server-5.5.29-1.el6.x86_64.rpm
3. 安装MySQL-client。
rpm -ivh MySQL-client-5.5.29-1.el6.x86_64.rpm
4. 启动MySQL。
rpm -ivh MySQL-client-5.5.29-1.el6.x86_64.rpm
5. 启动MySQL。
首次安装时,默认密码为空,可以使用命令进行修改root密码
mysqladmin -u root password 'new-password'
碰到的问题:
问题A:libaio.so未安装,导致报错,如下:
error: Failed dependencies: libaio.so.1()(64bit) is needed by MySQL-server-5.5.29-1.el6.x86_64 libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.29-1.el6.x86_64 libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.29-1.el6.x86_64
解决A:安装libaio.so
yum install libaio
问题B:conflicts with filefrom package mysql-libs-5.1.66-2.el6_3.x86_64
解决B:移除mysql-libs-5.1.66-2.el6_3.x86_64
yum -y remove mysql-libs-5.1.66*
但是该命令会删除依赖mysql-libs的软件。比如说我操作之后,输出如下:
Removed: mysql-libs.x86_64 0:5.1.66-2.el6_3 Dependency Removed: cronie.x86_64 0:1.4.4-7.el6 cronie-anacron.x86_64 0:1.4.4-7.el6 crontabs.noarch 0:1.10-33.el6 postfix.x86_64 2:2.6.6-2.2.el6_1 sysstat.x86_64 0:9.0.4-20.el6