0

How to Restore MySQL Database from Backup File

Asked 3 years ago (Feb 23, 2022) in the field of Linux by Kalameez

Hello, I have backup MySQL Databases using the mysqldump command, how can I restore it now?


Answers


0
Answered 3 years ago (Feb 23, 2022) by Eldernode Staff

You can use mysql command for it. For example following command will restore all backup from mydb.sql to newdb database.

mysql -u root -p newdb < newdb.sql
mysql -u root -p < all_databases.sql

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day