MySQL Forums
Forum List  »  Newbie

Re: Single database restores from a global database backup?
Posted by: Joao Prado Maia
Date: September 08, 2004 09:26PM

Hi Greg,

Yes, there is a special option to the mysql command line client to only update the given database, and skip all statements for other dbs.

Please run mysql with the '--one-database' option, like so:

mysql -u admin -ppasswd --one-database --database=mydb < mybackup.sql

Hope that helps,
Joao Prado Maia
MySQL AB

Options: ReplyQuote


Subject
Written By
Posted
Re: Single database restores from a global database backup?
September 08, 2004 09:26PM


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.