Mega Code Archive

 
Categories / MySQL / Command Mysql
 

Mysql can read from a pipe, so you can combine the use of mysqldump and mysql into a single command

shell> mysqldump --opt world Country | mysql test