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).

 

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
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More