简体   繁体   中英

Local Backup of MySQL DB with Sequel Pro

I have a MySQL database stored on AWS. I'm using Sequel Pro to manage it. I want to make a local copy for backup. In Sequel Pro, I see an option to File -> Export. I'm selecting SQL as the format. By default, the option to "Include Drop Table Syntax" is checked. Any ideas what this means? I want to rule out the possibility that it will drop my production AWS database after export.

It just means that the generated script will include DROP TABLE statements in addition to CREATE TABLE and INSERT . The statements will be executed when you run the script to restore the database.

If checked it add a statement some thing like below before the CREATE TABLE statement

DROP TABLE IF EXISTS tbl_name;

The idea is you can import this exported sql in database with existing table

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM