📜  mysql 转储特定表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:57.890000             🧑  作者: Mango

代码示例1
#note by specifying -p flag without a password it'll prompt you for pass

#dump specific files to a SQL file
mysqldump -u userHERE -p --lock-tables=false database_name table1 table2 table3 > mydb_tables.sql


#if you want to import a file into the data use this
mysql -u userHERE -p database_name < file.sql