How to Create a File Dump from a MySQL Database

Create the Dump File:

mysqldump --user=<user> --password=<password> <database> --result-file=<file.sql>


Load the Dump File:

myql --user=<user> --password=<password>
use <database>
source <file.sql>


Create a Dump With Only CREATE Commands:

To create a dump in MySQL without the DROP commands or any other extra command, use this syntax:

mysqldump -u user -p --skip-opt database &gt; dump.sql


External References:

http://www.howtoforge.com/back_up_mysql_dbs_without_interruptions (This is a script I have been using myself, also note down that site IF you are not familiar with it and care about linux).

 

Data Security with Flex2SQL and BTR2SQL Connectivity Products

Data Security with Flex2SQL and BTR2SQL Connectivity Products

The most common reason for Enterprises looking to migrate from legacy Btrieve or DataFlex databases is the urgent need to address security and...

Read More
Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More