在Centos系统中安装Mysql-5.5.52报错(一)

前端之家收集整理的这篇文章主要介绍了在Centos系统中安装Mysql-5.5.52报错(一)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装方式: 二进制免编译安装

wKiom1gpVKSw9oWFAAAZnl_GJk8193.png


初始化出错

MysqL/scripts/MysqL_install_db --basedir=/application/MysqL/ --datadir=/application/MysqL/data/ --user=MysqL

提示

/application/MysqL//bin/MysqLd: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


Installation of system tables Failed! Examine the logs in

/application/MysqL/data/ for more information.


wKiom1gpVQuQDoImAAEkAlRjdUY215.png


安装依赖包

[root@blog application]# yum install -y libaio libaio-devel


再进行初始化数据库

[root@blog application]# MysqL/scripts/MysqL_install_db --basedir=/application/MysqL/ --datadir=/application/MysqL/data/ --user=MysqL

Installing MysqL system tables...

161114 12:17:35 [Note] /application/MysqL//bin/MysqLd (MysqLd 5.5.52-log) starting as process 2189 ...

OK

Filling help tables...

161114 12:17:35 [Note] /application/MysqL//bin/MysqLd (MysqLd 5.5.52-log) starting as process 2196 ...

OK



成功!!

猜你在找的CentOS相关文章