手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

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.

linux
相关资讯       MySQL知识 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

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