error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or

CentOS-mysql5.7报错


今天在阿里云centos7上安装MYSQL报错了,如下所示:

./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

后面根据网上的办法,说是类库有问题,然后重新安装了,也是报错,后面重新把包整理了一遍,重新安装,问题解决。

yum search libaio
yum install libaio
yum -y install numactl
yum install libnuma
yum install ld-linux.so.2
yum install libaio.so.1
yum install libnuma.so.1
yum install libstdc++.so.6
yum install libtinfo.so.5
yum clean all
yum makecache



然后执行数据库mysqld命令执行初始化,如下图所示:

这一步报了一个错,如下所示:

[ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.

是因为mysql目录没有正确的访问权限,然后在mysql目录下,执行

chmod -R 777 

执行,完毕之后,如下所示:

你可能感兴趣的:(数据库)