I need to get a copy of a live database to create a test environment database using MySQL Workbench. If I use the Data Export tool to export to a Self-Contained File (filename.sql) - will I lose any information on the live server or is it just backing up the data? The word 'Dump' really concerns me...as if I'm "cutting and pasting" instead of "copy and paste". It's absolutely vital that I keep all the data on the live server. Hopefully my question made sense...

有帮助吗?

解决方案

Command line "mysqldump" might be quicker

mysqldump -h [server] -u [user] -p[password] db1 | mysql -h [server] -u [user] -p[password] db2

However MySQL Workbench will do pretty much the same thing, mysqldump doesnt delete your information.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top