ldd /usr/bin/mysql_mysql客戶端登錄時報mysql: relocation error錯誤

在安裝了xtrabackup后,再用下列命令登錄時報下列錯誤

[root@localhost ~]# mysql -u root -p

mysql: relocation error: mysql: symbol strmov, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference

解決方法:查看該庫文件是否存在

[root@localhost ~]# find / -name libmysqlclient.so.16

/usr/lib64/libmysqlclient.so.16

查看mysql命令運行時所需要的庫文件

[root@localhost ~]# ldd /usr/bin/mysql

linux-vdso.so.1 =>? (0x00007fffe3fff000)

libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f387380c000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f38735ee000)

libmysqlclient.so.16 => /usr/lib64/libmysqlclient.so.16 (0x00007f387327f000)

libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f3873048000)

libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f3872e2e000)

libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f3872bc2000)

libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007f38727df000)

libz.so.1 => /lib64/libz.so.1 (0x00007f38725c8000)

libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f38722c2000)

libm.so.6 => /lib64/libm.so.6 (0x00007f387203e000)

libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f3871e27000)

libc.so.6 => /lib64/libc.so.6 (0x00007f3871a93000)

libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f3871872000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f387166d000)

/lib64/ld-linux-x86-64.so.2 (0x00007f3873a4b000)

librt.so.1 => /lib64/librt.so.1 (0x00007f3871465000)

libfreebl3.so => /lib64/libfreebl3.so (0x00007f3871262000)

libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f387101d000)

libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f3870d37000)

libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f3870b33000)

libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f3870906000)

libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f38706fb000)

libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f38704f7000)

libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f38702dd000)

libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f38700be000)

從上面可以看到該文件已存在,并且已被調用

3.查看系統中是否安裝了Percona軟件包

[root@localhost ~]# rpm -qa | grep Percona

Percona-Server-shared-51-5.1.73-rel14.12.624.rhel6.x86_64

4.將該軟件包卸載掉

[root@localhost ~]# rpm -e Percona-Server-shared-51-5.1.73 --nodeps

5.禁用percona的軟件源

[root@localhost ~]# cd /etc/yum.repos.d

[root@localhost yum.repos.d]# ls

CentOS-Base.repo? CentOS-Debuginfo.repo? CentOS-fasttrack.repo? CentOS-Media.repo? CentOS-Vault.repo? epel.repo? epel-testing.repo? percona-release.repo

[root@localhost yum.repos.d]# mv percona-release.repo percona-release.repo.disable

6.安裝mysql-libs軟件包

[root@localhost ~]# yum -y install mysql-libs

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

* base: mirrors.yun-idc.com

* epel: mirrors.yun-idc.com

* extras: mirrors.yun-idc.com

* updates: mirrors.btte.net

Resolving Dependencies

--> Running transaction check

---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================

Package??????????????????????????????? Arch?????????????????????????????? Version??????????????????????????????????? Repository??????????????????????? Size

=============================================================================================================================================================

Installing:

mysql-libs???????????????????????????? x86_64???????????????????????????? 5.1.73-3.el6_5???????????????????????????? base???????????????????????????? 1.2 M

Transaction Summary

=============================================================================================================================================================

Install?????? 1 Package(s)

Total download size: 1.2 M

Installed size: 4.0 M

Downloading Packages:

mysql-libs-5.1.73-3.el6_5.x86_64.rpm????????????????????????????????????????????????????????????????????????????????????????????????? | 1.2 MB???? 00:07

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

** Found 16 pre-existing rpmdb problem(s), 'yum check' output follows:

mysql-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient.so.16()(64bit)

mysql-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)

mysql-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient_r.so.16()(64bit)

mysql-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient_r.so.16(libmysqlclient_16)(64bit)

mysql-5.1.73-3.el6_5.x86_64 has missing requires of mysql-libs = ('0', '5.1.73', '3.el6_5')

mysql-devel-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient.so.16()(64bit)

mysql-devel-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient_r.so.16()(64bit)

mysql-server-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient.so.16()(64bit)

mysql-server-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)

mysql-server-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient_r.so.16()(64bit)

mysql-server-5.1.73-3.el6_5.x86_64 has missing requires of libmysqlclient_r.so.16(libmysqlclient_16)(64bit)

perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)

perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)

2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of libmysqlclient.so.16()(64bit)

2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)

2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of mysql-libs

Installing : mysql-libs-5.1.73-3.el6_5.x86_64????????????????????????????????????????????????????????????????????????????????????????????????????????? 1/1

Verifying? : mysql-libs-5.1.73-3.el6_5.x86_64????????????????????????????????????????????????????????????????????????????????????????????????????????? 1/1

Installed:

mysql-libs.x86_64 0:5.1.73-3.el6_5

Complete!

7.重新登錄進行測試

[root@localhost ~]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.? Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit

問題解決!

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/397053.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/397053.shtml
英文地址,請注明出處:http://en.pswp.cn/news/397053.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

python語言用什么關鍵字來聲明一個類_python使用什么關鍵字定義類

什么是類? 用來描述具有相同的屬性和方法的對象的集合。它定義了該集合中每個對象所共有的屬性和方法。對象是類的實例。 什么是方法? 類中的函數即為方法 如何定義一個類? 定義類,語法格式如下:class ClassName:. . .…

谷歌+安卓,他已經改變了世界兩次,但還想多來幾次

回望拉里佩奇的創業經歷,小巴發現他在幾個創業者最有可能犯(si)錯(bi)的節點上都處理得很好。 你還記得你用的第一個搜索網站是什么嗎? Google.com 講到它的創始人,一般要連起來念, …

centos7 DNS服務器搭建

DNS,全稱Domain Name System,即域名解析系統。 DNS幫助用戶在互聯網上尋找路徑。在互聯網上的每一個計算機都擁有一個唯一的地址,稱作“IP地址”(即互聯網協議地址)。由于IP地址(為一串數字)不方…

lisp中怎樣調取圖形_CAD的lisp程序已加載,怎樣繪圖?

回答:1.計算所有線段總長度(加載后只需框選所有線段便可得出這些線段的總長度)(defun c:LL ()(setvar "cmdecho" 1)(setq en (ssget(list (0 . "spline,arc,line,ellipse,LWPOLYLINE"))))(setq i 0)(setq ll 0)(repeat (sslength en)(setq ss (…

Java Web的web.xml文件作用及基本配置(轉)

其實web.xml就是asp.net的web.config一個道理。 說明: 一個web中完全可以沒有web.xml文件,也就是說,web.xml文件并不是web工程必須的。 web.xml文件是用來配置:歡迎頁、servlet、filter等的。當你的web工程沒用到這些時&#xff0…

stand up meeting 12/21/2015

part組員 工作 工作耗時/h明日計劃工作耗時/h UI馮曉云 完成PDF UI主頁面的頁面切換功能,待完善 4 完善頁面切換,修補彈窗bug 4foxit PDF Reader朱玉影 修改了對pdf中文本進行搜索的代碼,使其更加robust 4 pdf…

python快速檢測視頻跳過幀_使用Python實現跳幀截取視頻幀

本文實例為大家分享了Python跳幀截取視頻幀的具體代碼,供大家參考,具體內容如下 可以自由設定時長來截取視頻,經實測效果理想。期間遇到的一個麻煩是我的視頻文件在D:盤,在原視頻D盤目錄上不能保存截取的圖片文件,后改…

BZOJ3999: [TJOI2015]旅游

BZOJ3999: [TJOI2015]旅游 Description 為了提高智商,ZJY準備去往一個新世界去旅游。這個世界的城市布局像一棵樹。每兩座城市之間只有一條路徑可以互達。每座城市都有一種寶石,有一定的價格。ZJY為了賺取最高利益,她會選擇從A城市買入再轉手…

一張圖看懂單機/集群/熱備/磁盤陣列(RAID)

單機部署(Standalone) 只有一個飲水機提供服務器,服務只部署一份 集群部署(Cluster) 多個飲水機同時提供服務,服務冗余部署,每個冗余的服務都對外提供服務,一個服務掛掉時依然可用 熱備部署(Hot-swap) 只有一個桶提供服務&#xf…

typescript vuex_Vue3+TypeScript完整項目上手教程

作者:TinssonTaihttps://juejin.im/post/6875713523968802829一個完整的Vue3Ts項目,支持.vue和.tsx寫法 項目地址:https://github.com/vincentzyc/vue3-demo.gitTypeScript 是JS的一個超集,主要提供了類型系統和對ES6的支持,使用 …

JS中window.showModalDialog()詳解

window.showModalDialog()方法用來創建一個顯示HTML內容的模態對話框。 window.showModelessDialog()方法用來創建一個顯示HTML內容的非模態對話框。 使用方法: vReturnValue window.showModalDialog(sURL [, vArguments] [,sFeatures]) vReturnValue window.show…

一個簡單的javascript節流器實現

節流器 javascript的節流器主要用于延緩某些動作的執行,比如ajax請求,如果input框注冊了input事件,那么當用戶輸入時就會持續的觸發這個事件,如果回調函數中持續的通過ajax調用后臺的接口,就會對服務器產生一定壓力。這…

一些會用到的知識

為什么80%的碼農都做不了架構師?>>> HtmlAgilityPack 用來解析HTML代碼 microsoft.mshtml CsQuery 解析HTML代碼 轉載于:https://my.oschina.net/uwith/blog/813725

eclipse怎么升級到java ee,如何為Java EE開發人員升級Eclipse?

Is there any non-painful way to upgrade an Eclipse installation? I have tried browsing the eclipse site but I cannot find an useful description.解決方案Add the update URL to your available sites:Window > Preferences > Install/Update > Available S…

LeetCode 7 Reverse Integer(反轉數字)

題目來源:https://leetcode.com/problems/reverse-integer/ Reverse digits of an integer. Example1: x 123, return 321Example2: x -123, return -321 解題思路: 其實這道題看起來非常簡單,要實現也是幾行代碼的事。但是有個小問題容易被…

各種蘊含算法思想的DP - 3

內容中包含 base64string 圖片造成字符過多,拒絕顯示轉載于:https://www.cnblogs.com/cmyg/p/9566723.html

python圖像對比_用python實現對比兩張圖片的不同

from PIL import Image from PIL import ImageChops def compare_images(path_one, path_two, diff_save_location): """ 比較圖片,如果有不同則生成展示不同的圖片 參數一: path_one: 第一張圖片的路徑 參數二: path_two: 第二張圖片的路徑 參數三:…

Kafka 分布式環境搭建

這篇文章將介紹如何搭建kafka環境,我們會從單機版開始,然后逐漸往分布式擴展。單機版的搭建官網上就有,比較容易實現,這里我就簡單介紹下即可,而分布式的搭建官網卻沒有描述,我們最終的目的還是用分布式來解…

Docker Machine搭建并加入節點

對于集群服務器來講,要在每臺機器上手動安裝Docker是一件及其痛苦的事情,還好有Docker Machine這一工具,Docker三劍客中的一角. 一、Docker Machine介紹 這個工具已經出了比較久了,Docker Machine官方介紹:https://doc…

ASPNET5的依賴注入

ASP.NET5設計的時候就是以DI為基礎的,它可以利用內建的框架在Startup類的方法中,把依賴注入進去。應用服務也可以被配置的注入。默認的服務容器提供一些基本的功能,它并不打算代替現代主流的DI框架。 1. 什么是Dependency Injection? DI的概…