mysql啟動時報錯:error while loading shared libraries: libncurses.so.5: cannot open shared object file的解決辦法
今天由于項目的需要,特地在redhat9中安裝了一套mysql5.7的數(shù)據(jù)庫。前期在安裝和配置的過程中沒有什么問題,但是在啟動mysql的時候報了一個錯,報錯內(nèi)容為:
[root@localhost bin]# ./mysql -u root ./mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
根據(jù)報錯內(nèi)容可以看出,是因為在啟動mysql的時候加載了libtinfo.so.5庫文件。此時我們可以查看redhat9系統(tǒng)中是否存在改庫文件。
[root@server bin]# find / -name 'libncurses*' /usr/lib64/libncurses.so.6 /usr/lib64/libncursesw.so.6 /usr/lib64/libncurses.so.6.2 /usr/lib64/libncursesw.so.6.2
從上面的查詢結(jié)果中可以看到,我現(xiàn)在使用的系統(tǒng)中并沒有安裝對應(yīng)5版本的庫文件,這個時候可以將高版本創(chuàng)建軟連接到5版本。
[root@server bin]# ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
再次啟動時,發(fā)現(xiàn)還缺一個庫文件。
[root@server bin]# ./mysql ./mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
我們繼續(xù)查找?guī)煳募?/p>
[root@server bin]# find / -name libtinfo.so* /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.6.2
發(fā)現(xiàn)也是缺少一個對應(yīng)的5版本的文件,同樣的道理,將對應(yīng)的高版本創(chuàng)建一個低版本的軟連接。
[root@server bin]# ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5
最后再重新啟動mysql數(shù)據(jù)庫,會發(fā)現(xiàn)可以正常啟動了。
希望該文章能幫助到各位朋友,多謝支持。
到此這篇關(guān)于mysql啟動時報錯:error while loading shared libraries: libncurses.so.5: cannot open shared object file的解決辦法的文章就介紹到這了,更多相關(guān)MySQL啟動報錯cannot open shared object file內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- mysql啟動報錯:The?server?quit?without?updating?PID?file的幾種解決辦法匯總
- MySQL在Windows中net start mysql 啟動MySQL服務(wù)報錯 發(fā)生系統(tǒng)錯誤解決方案
- 解決MySQL啟動報錯:ERROR 2003 (HY000): Can''t connect to MySQL server on ''localhost'' (10061)
- MySQL啟動報錯問題InnoDB:Unable to lock/ibdata1 error
- Django重裝mysql后啟動報錯:No module named ‘MySQLdb’的解決方法
- mysql啟動報錯MySQL server PID file could not be found
- 解決Mysql服務(wù)器啟動時報錯問題的方法
- mysql服務(wù)無法啟動報錯誤1067解決方法(mysql啟動錯誤1067 )
- mysql啟動報錯Failed?to?start?LSB:start?and?stop?MySQL的問題解決
相關(guān)文章
MySql服務(wù)器系統(tǒng)變量和狀態(tài)變量介紹
這篇文章主要介紹了MySql服務(wù)器系統(tǒng)變量和狀態(tài)變量介紹,本文分別講解了它們的作用、設(shè)置方法和獲取方法,需要的朋友可以參考下2014-12-12MySQL存儲過程中游標(biāo)循環(huán)的跳出和繼續(xù)操作示例
這篇文章主要介紹了MySQL存儲過程中游標(biāo)循環(huán)的跳出和繼續(xù)操作示例,解決了在MySQL存儲過程中循環(huán)時執(zhí)行游標(biāo)的一個conitnue的操作解決方法,需要的朋友可以參考下2014-07-07MySQL中FIND_IN_SET函數(shù)與INSTR函數(shù)用法解析
這篇文章主要介紹了MySQL中FIND_IN_SET函數(shù)與INSTR函數(shù)用法解析,本文通過實例代碼給大家介紹的非常詳細,感興趣的朋友一起看看吧2025-04-04