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
- Create data base in your local database
- Copy the path where MySql bin folder is available in command prompt for example D:\wamp\bin\mysql\mysql5.5.24\bin
- Write command to store database : mysql -u root -p db_name < D:\db_name.sql
where D:\db_name.sql is the path where dump database is available and db_name.sql is the database name
Note:
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
where D:\class_db.sql is the path where you want to save backup file and class_bd is the name you want to save file as.