mysqlhotcopy problem on Ubuntu 7.10
Subject: mysqlhotcopy problem on Ubuntu 7.10
Newsgroups: gmane.network.freenac.devel
Date: 2007-11-27 19:47:19 GMT
mysqlhotcopy -q --allowold --keepold phpbb /var/backups
Invalid db.table name 'phpbb.phpbb`.`phpbb_auth_access' at /usr/bin/mysqlhotcopy line 859.
Usage: /usr/bin/mysqlhotcopy db_name[./table_regex/] [new_db_name | directory]
Brilliant, it’s a bug:
http://bugs.mysql.com/bug.php?id=27303
happens in function get_list_of_tables(). Adding the following line right behind line 835
will strip the prefixing schema:
map { s/^.*?\.//o } <at> dbh_tables;"
So:
ci -l /usr/bin/mysqlhotcopy
vi /usr/bin/mysqlhotcopy
rcsdiff /usr/bin/mysqlhotcopy
===================================================================
RCS file: /usr/bin/mysqlhotcopy,v
retrieving revision 1.1
diff -r1.1 /usr/bin/mysqlhotcopy
839a840
> map { s/^.*?\.//o } <at> dbh_tables; # http://bugs.mysql.com/bug.php?id=27303
==> This fix works, but is ugly. Anyway for now it have to be manually added to any Gutsy Installations
Sean
---------- Forwarded message ----------
From: Cron Daemon
Date: 27 Nov 2007 00:10
Subject: Cron <root <at> freenacweb> mysqlhotcopy -q --allowold
--keepold phpbb /var/backups
Invalid db.table name 'phpbb.phpbb`.`phpbb_auth_access ' at
/usr/bin/mysqlhotcopy line 859.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Opennac-devel mailing list Opennac-devel@... https://lists.sourceforge.net/lists/listinfo/opennac-devel
RSS Feed