Easy Way For Dumping and loading data from MySQL - Instablogs
Easy Way For Dumping and loading data from MySQL
Jayapal , Trivandrum: Mar 19 2008
Made Popular Mar 22 2008
India :

–Dumping the Database –

You can dump the database in the server, in sql format using ‘mysqldump’

Syntax:

mysqldump -u root -p demo_db > dump.sql

Here ‘demo_db’ is the name of the database and dump.sql is the name we give for the sql file in which the data is to be dumped.

when once this command is executed, there will be a prompt for password and after giving the password, we can generate the dump.sql in the server.

Then we can download the dump.sql from the server using via ftp.

–Loading the Database –

Suppose, we have the database as dump.sql, locally, and we want to load it, we can use the following syntax from the command prompt

mysql -u root demo_db

Before executing this, make sure you are in the bin folder of mysql

eg: C:\Program Files\xampp\mysql\bin ——————————————————————— Jayapal

Add Images and Videos
Close X
Recommended Tags or Keywords
Search by Tags or Keywords
Selected Media ( You can Upload only Six media )
Sorry no picture found for this combination of tags. Try to search minimum number of tags at once
Add your Comment