DrStalker
asked on
mysqldump: Got error: 1066: Not unique table/alias: foo when using LOCK TABLES when lower_case_table_names=1
I'm trying to dump a MYSQL DB on a linux server (Centos 5.2 32bit, MySQL 5.0.45)
In /etc/my.cnf the following value is defined:
[mysqld]
lower_case_table_names=1
When I try and do a dump with mysqldump I get the following error:
[root@linuxbox backups]# mysqldump --user=root --password=secret --result-file=/tmp/out.sql
mysqldump: Got error: 1066: Not unique table/alias: 'foo' when using LOCK TABLES
I can't figure out what I need to do to work around this, and we can't set lower_case_table_names to 0 in my.cnf because that will break some things that require case insensative table names.
How can I do a mysqldump in this situation? (or, another way to make a backup of the DB to file would work since that is the goal)
ASKER
That results in
mysqldump: unknown variable 'lower_case_table_names=0'
Which suggests to me mysqldump doesn't understand the lower_case_table_names variable.
mysqldump: unknown variable 'lower_case_table_names=0'
Which suggests to me mysqldump doesn't understand the lower_case_table_names variable.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try also quote-names in the my.cnf :
[mysqldump]
quote-names
lower_case_table_names=0