[mysql] mysqldump導出指定數據庫表和條件的數據


mmysqldump 導數據經常使用,指定數據庫,指定表,指定條件,可以這么執行

比如clue數據庫 , clue_outcall_tasks 表,id=1

mysqldump -h192.168.11.10 -uroot -pcentos  --databases clue --tables clue_outcall_tasks -t  --where='id=1' >/tmp/clue_outcall_tasks.sql

參數解釋:

--databases 指定數據庫
--tables 指定表
--where='' 是篩選條件
-t只導數據,不導結構
-d只導結構,不導數據


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM