2) Restore
$mysql -u root -p mysql
> create database mydb; mysql
> use mydb; mysql
> source db_backup.dump;
3) Another way, you need to run:
$mysql -p -u[user] [database] < db_backup.dump
If the dump contains multiple databases you should omit the database name:
$mysql -p -u[user] < db_backup.dump
4) Restore specific database
$mysql -u onepoint -p --one-database maxx2016 < back_20190226.sql
No comments:
Post a Comment