Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 MySQL 转储中删除选择性表。我想从我的转储文件中删除以下表格。我该怎么做。
"DATABASECHANGELOG", "DATABASECHANGELOGLOCK",
我想您可以使用以下命令进行 mysqldump 以忽略进行转储时的特定表,这样您就可以避免在进行转储后删除表的风险
mysqldump -u username -p database_name --ignore-table=database_name.table1 --ignore-table=database_name.table2 > test.sql