mysql 备份

  475  mysqldump -u[username] -h[host] -p[password]  --port [port]  --skip-lock_tables  databaseName  > ~/Downloads/all.sql

备份数据 --skip-lock_tables  因为导出要锁定表,

导出数据

 

mysqldump -u[name]-h[host] -p[password] -P[port] --skip-lock_tables table > [filePath]

mysql> source  [filePath]

原文地址:https://www.cnblogs.com/studyNT/p/5410744.html