热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

mysqlhotcopy 运行错误解决一例

来源: 作者: 时间:2008-08-11 Tag: 点击:
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.

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册