CentOS 6.4下Percona Xtrabackup安裝部署錯誤處理

來源:互聯網
上載者:User

標籤:xtrabackup   percona xtrabackup   innobackupex: error   

在centos 6.4 安裝部署Percona Xtrabackup,執行全備份指令碼,備份不成功,查看日誌,報錯如下:


 11:15:51  innobackupex: Connecting to MySQL server with DSN ‘dbi:mysql:;mysql_read_default_file=/etc/my.cnf;mysql_read_default_group=xtrabackup;mysql_socket=/data/lib/mysql/mysql.sock‘ as ‘dump‘  (using password: YES).

innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 2999

        main::mysql_connect(‘abort_on_error‘, 1) called at /usr/bin/innobackupex line 1539

innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at /usr/bin/innobackupex line 2999.


日誌顯示安裝perl-DBD有問題

解決辦法:卸載下列軟體

rpm -e percona-xtrabackup-2.2.9-5067.el6.x86_64

rpm -e perl-DBI-1.52-2.el5.x86_64 --nodeps

rpm -e perl-DBD-MySQL-4.013-3.el6.x86_64 --nodeps

重新安裝軟體

rpm -ivh perl-DBI-1.609-4.el6.x86_64.rpm

rpm -ivh perl-DBD-MySQL-4.013-3.el6.x86_64.rpm

rpm -ivh percona-xtrabackup-2.2.9-5067.el6.x86_64.rpm


重新執行全備份指令碼,備份成功,查看日誌,無報錯資訊,問題



本文出自 “小熊笨笨” 部落格,請務必保留此出處http://ccmm8488.blog.51cto.com/2254226/1682319

CentOS 6.4下Percona Xtrabackup安裝部署錯誤處理

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.