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只导结构,不导数据

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-07-24
  • 2022-03-01
  • 2021-11-23
猜你喜欢
  • 2021-05-27
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案