How to Create mysql database Backup Using Command.

In this tutorials we will learn that how to create mysql database backup using cmd.

1- First of all open cmd.

2- Go to C -> Program Files -> MySql -> MySQL Server 5.7 -> Bin.

3- Copy Bin Directory address like "C:\Program Files\MySQL\MySQL Server 5.7" .

4- Pasted in cmd like "cd C:\Program Files\MySQL\MySQL Server 5.7" hit Enter.

5- Now try to connect with mysqldump like C:\Program Files\MySQL\MySQL Server                      5.7>mysqldump -h localhost -u root -p databaseName.

6- Now Create New folder in C: Drive and rename it with "backup" name.

7- Copy that backup Folder Directory address like "C:\Program Files\MySQL\MySQL Server       5.7>mysqldump -h localhost -u root -p databaseName >C:\backup".

8- Finally at the end write a database name like "C:\Program Files\MySQL\MySQL Server       5.7>mysqldump -h localhost -u root -p databaseName >C:\backup\databaseName.sql" hit Enter.

9- Enter your password if you give your correct address which i mention in point 8.

10- After Enter your mysql server password Now check your backup folder you have successfully create your database backup.

You can check my video tutorial here also.


Comments

Popular posts from this blog

The value for column 'IsPrimaryKey' in table 'TableDetails' is DBNull

How to Disable Skype on Windows Startup.