mysqldump:發生錯誤:1066:不是唯一的表/別名:當 lower_case_table_names=1 時使用 LOCK TABLES 時,出現“foo”

mysqldump:發生錯誤:1066:不是唯一的表/別名:當 lower_case_table_names=1 時使用 LOCK TABLES 時,出現“foo”

我正在嘗試在 Linux 伺服器上轉儲 MYSQL 資料庫(Centos 5.2 32 位,MySQL 5.0.45)

在 /etc/my.cnf 中定義了以下值:

[mysqld]
lower_case_table_names=1

當我嘗試使用 mysqldump 進行轉儲時,出現以下錯誤:

[root@linuxbox backups]# mysqldump --user=root --password=secret   --result-file=/tmp/out.sql--all-databases
mysqldump: Got error: 1066: Not unique table/alias: 'foo' when using LOCK TABLES

我不知道我需要做什麼來解決這個問題,而且我們不能在 my.cnf 中將 lower_case_table_names 設為 0,因為這會破壞一些需要不區分大小寫的表名的東西。

在這種情況下我該如何做 mysqldump? (或者,將資料庫備份到檔案的另一種方法也可以,因為這是目標)

答案1

重新命名衝突關係之一。

相關內容