阅读内容

mysqlhotcopy 运行错误解决一例

[日期:2008-08-10] 来源:Linux公社  作者:Linux编辑


mysqlhotcopy运行如下:

[root@local_slavedb ~]# mysqlhotcopy test /tmp

Invalid db.table name 'test.test`.`mytest' at /usr/bin/mysqlhotcopy line 855.

解决方法:

Suggested fix:


A quick and dirty fix is to strip the database prefix from the list of tables. This

happens in function get_list_of_tables(). Adding the following line right behind line 835

will strip the prefixing schema:

map { s/^.*?\.//o } @dbh_tables;

A long term fix would be to avoid $dbh->tables() (it is marked deprecated anyway) and use either table_info() or plain SHOW TABLES instead.




本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google