Wednesday, February 27, 2019

Ubuntu mySQL Backup/Restore

1)Create


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:

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...