1、安装mysql报错:error: Failed dependencies
安装命令 rpm -ivh MySQL-server-5.6.24-1.el6.x86_64.rpm
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.6.24-1.el6.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.24-1.el6.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.6.24-1.el6.x86_64
解决方案:安装依赖libaio包,安装命令 yum install libaio
注意:一定不要使用--nodeps --force跳过依赖,否则后面启动mysql时会报错。
2、启动mysql报错:The server quit without updating PID file (/var/lib/mysql/hadoop102.pid)(这个错误有一部分原因就是安装mysql时跳过了依赖)
折腾了2天,在网上找了各种方法都解决不了,已经放弃了,都有重装centos的心思了,就在这时候找到了解决的办法,记录如下:
1、卸载mariaDB
注意:一定要将mariaDB包和自带mysql包卸载干净,否则安装