mysql備份錯誤記錄

來源:互聯網
上載者:User

標籤:mysql備份錯誤

今日遇到一個問題,mysql資料量備份出錯,記錄如下:

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/47/D1/wKioL1P_6kThejrOAAaxsonf7EI763.jpg" title="QQ20140829104300.jpg" alt="wKioL1P_6kThejrOAAaxsonf7EI763.jpg" />

錯誤顯示:

Enter password:
mysqldump: Got error: 1449: The user specified as a definer (‘ljgps‘@‘%‘) does not exist when using LOCK TABLES


查詢多次後,解決方案:

 mysqladmin -uroot -p123456 flush-logs;
  /opt/mysql/bin/mysql -uroot -p123456


 /opt/mysql/bin/mysqldump -uljgps -p  ljgps  > ljgps.sql

添加ljgps使用者,備份時不要輸入密碼123456,資料庫會認為密碼過於簡單暴露而不去執行,可以這樣:

 /opt/mysql/bin/mysqldump -uljgps -p  ljgps  > ljgps.sql

然後再輸入密碼:斷行符號執行即可。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/47/CF/wKiom1P_60ujTpjuAAZdYlkyG5I100.jpg" title="9999.jpg" alt="wKiom1P_60ujTpjuAAZdYlkyG5I100.jpg" />


本文出自 “ghost” 部落格,請務必保留此出處http://caizi.blog.51cto.com/5234706/1546416

mysql備份錯誤記錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.