mysql初始化時報錯bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared obj...

問題描述:mysql

  今天新安裝了一個linux虛擬機,而後安裝mysql 5.7.21,在進行初始化的時候,報錯linux

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

解決方法:sql

1.安裝numactl軟件包spa

[root@testvm01 mysql]# yum -y install numactl Loaded plugins: product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: numactl x86_64 2.0.9-2.el6                                      rhel-source                                      74 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package(s) Total download size: 74 k Installed size: 171 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : numactl-2.0.9-2.el6.x86_64                                                                                                                                                  1/1 Verifying : numactl-2.0.9-2.el6.x86_64                                                                                                                                                  1/1 Installed: numactl.x86_64 0:2.0.9-2.el6 Complete!

2.再次進行初始化操做debug

[root@testvm01 mysql]# bin/mysqld --initialize --user=mysql

備註:能夠正常的執行初始化,沒有報錯.code

 

文檔建立時間:2018年8月14日15:14:42blog

相關文章
相關標籤/搜索