二进制安装mysql5.6.39初始化时报错如下:

[root@localhost scripts]# ./mysql_install_db --datadir=/data/mysql/data --basedir=/usr/local/mysql --user=mysql --explicit_defaults_for_timestamp
Installing MySQL system tables.../usr/local/mysql/bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

提示找不到库文件,于是查找缺少库文件的安装包

[root@localhost tmp]#  yum provides libnuma.so.1 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.163.com
numactl-2.0.9-2.el6.i686 : Library for tuning for Non Uniform Memory Access machines
Repo        : base
Matched from:
Other       : libnuma.so.1

采用yum安装此软件包
yum install numactl* -y

重新初始化mysql成功