這篇文章將為大家詳細(xì)講解有關(guān)mysqldump中出現(xiàn)error1066錯(cuò)誤怎么辦,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
mysqldump導(dǎo)出數(shù)據(jù)庫(kù)報(bào)錯(cuò)
mysqldump --databases tsconsole>/data/tsconsolebak.sql
報(bào)錯(cuò)內(nèi)容:
mysqldump: Got error: 1066: Not unique table/alias: 'act_evt_log' when using LOCK TABLES
方法1:
添加參數(shù) --single-transaction正常導(dǎo)出(已測(cè)試)
mysqldump --single-transaction --databases tsconsole>/data/tsconsole180814.sql
方法2:
將/etc/my.cnf 的
lower_case_table_names=1添加注釋
重啟mysql,執(zhí)行導(dǎo)出
關(guān)于“mysqldump中出現(xiàn)error1066錯(cuò)誤怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。