centos 安装mysql8

01、安装过程中报错

warning: mysql-community-server-8.0.12-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
    libaio.so.1()(64bit) is needed by mysql-community-server-8.0.12-1.el7.x86_64
    libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-8.0.12-1.el7.x86_64
    libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-8.0.12-1.el7.x86_64

02、解决办法:

缺少文件

weget http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm

rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm

03、停止mysql8服务命令

service mysqld stop
或者
systemctl stop mysqld.service

04、启动mysql8服务命令

service mysqld start
或
systemctl start mysqld.service

05、重启mysql8服务命令

service mysqld restart
或者
systemctl restart mysqld.service

 

参考:

https://blog.csdn.net/vkingnew/article/details/81264917

https://blog.csdn.net/daodan988/article/details/10950957

https://www.cnblogs.com/wuyuxiang/p/5166705.html

https://www.cnblogs.com/stm32stm32/p/7862503.html

你可能感兴趣的:(java技术,mysql)