Re: Errors with Information_Schema in Create Target Results
Posted by: Peter Brawley
Date: October 28, 2021 09:18AM

You've conflated mysql and mysqldump syntax.

Basic mysqldump syntax is ...

mysqldump [OPTIONS] dbname [tblnames]

... where options are prefixed with single or double hyphens, see syntax with ...

mysqldump --help --verbose | more

For one database you would need something like ...

mysqldump –uUSR –pPWD –K –E –R –f database_name >some_backup_dir/mybackup.sql

Then to inhale it into your new MySQL instance ...

mysql -uPWD -pPWD --show-warnings --tee=<path\mysql.log

create database if not exists dbname;
use dbname;
source some_backup_dir/mybackup.sql -- NO TERMINATING SEMICOLON

Options: ReplyQuote


Subject
Written By
Posted
Re: Errors with Information_Schema in Create Target Results
October 28, 2021 09:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.