How to restore mySQL Database using command line CLI

First of all copy the database backup into any folder in Linux Server

In my case it is stored in /www/backup/database/

File name is syncbricksDB.sql

Use below command to restore it to existing database

/www/backup/database$ mysql -u root -p support < /www/backup/database/syncbricksDB.sql.sql

About Amjid

Leave a Reply

Your email address will not be published.