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只導結構,不導數據
