How to upload and take backup of large MySql database file into local database using command prompt
Note:
u = username
p = password (write password after p without space)
How to take database backup
- Craete data base in your local database
- Copy the path where MySql bin folder is available in command prompt for example C:\wamp\bin\mysql\mysql5.5.24\bin
- Write command to store database : mysql -u root -p db_name.sql< C:\Users\Desktop\db_folder_name\db_name.sql
Note:
u = username
p = password (write password after p without space)
How to take database backup
- Write command to command prompt : mysqldump -u root -p db_name > d:\class_db.sql
0 comments:
Post a Comment