复现工作时需要拉一下测试环境的数据到开发环境,所以就是mysqldump老哥出场了…123# mysqldump -h localhost -u root -p --tables test_table --where="str='str1'" > test_table_data.sqlEnter password:Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don't want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.上面的警告内容翻译如下:12默认情况下,来自具有 GTID 的服务器的部分转储将包括所有事务的 GTID,即使是那些更改了数据库被抑制部分的事务。如果不想恢复 gtid,请使用 --set-gtid-purged=OFF 参数。如果要进行完
...
继续阅读
(69)