0% found this document useful (0 votes)
176 views

How To Copy Mysql Databse From One Computer To Another

This document outlines how to backup a MySQL database using mysqldump and transfer it between computers. It describes: 1. Using mysqldump to create a dump file of the database. 2. Copying the SQL dump file to the new computer where the database will be transferred. 3. On the new computer, using mysqldump to import the SQL dump file and recreate the database.

Uploaded by

Sai Manikandan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views

How To Copy Mysql Databse From One Computer To Another

This document outlines how to backup a MySQL database using mysqldump and transfer it between computers. It describes: 1. Using mysqldump to create a dump file of the database. 2. Copying the SQL dump file to the new computer where the database will be transferred. 3. On the new computer, using mysqldump to import the SQL dump file and recreate the database.

Uploaded by

Sai Manikandan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

How to copy Mysql databse from one Computer to another / backup database using

mysqldump
1. We can take backup of MySQL database by using musqldump.
2. We can transfer a MySQL database from one PC to another PC using mysqldump command.
3. We have to create dump file of database to transfer database from one PC to another PC.
4. MySQL databse is not portable database i.e. we cannot transfer it from one PC to another PC
by copying and pasting it.
5. We can use following method to transfer database.
6. Creating a dumpfile from database/ Taking backup of MySQL database:
7. Open command prompt.
8. Execute following commands to change directory
c: press enter
cd program files/MySQL/MySQL Server 5.1/ bin press enter
mysqldump -u root -p databse_name > database_name.sql press enter
Enter password: password of MySQL
Copy sql file and paste it in PC where you want to transfer database.
2. Dumping sql file into database:-

- Open MySQL command line client command prompt.

- Execute following command to create database.
create database database_name;
press enter Database name is must as that of your database _name.
Copy that sql file into location c:/program files/MySQL/MySQL Server 5.1/bin
*- Now open command prompt and execute following commands.*


>C: press enter

>cd program files/MySQL/MySQL Server5.1/bin press enter

>mysql u root p database_name < database_name.sql press enter

Your database is created on PC.

Now in MySQL command prompt check your database.

You might also like