mysql初始化時報錯bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory的處理


問題描述:

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

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

解決方法:

1.安裝numactl軟件包

[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.再次進行初始化操作

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

備注:可以正常的執行初始化,沒有報錯.

 

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM