MySQL Forums
Forum List  »  Backup

Re: Restoring all databases
Posted by: Felix Geerinckx
Date: May 10, 2005 08:01AM

Tim Gallagher wrote:
> So I have to create the databases on the new computer? Looking at the sql file I noticed that
> the databases can be created by running the .sql file.

If your sql-file contains the

CREATE DATABASE foo;
USE foo;

statements it will work without specifying a database:

mysql -uuser -ppass <filename.sql

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Views
Written By
Posted
41313
May 09, 2005 11:19AM
21124
May 09, 2005 11:32AM
18868
May 10, 2005 07:53AM
Re: Restoring all databases
21358
May 10, 2005 08:01AM
12213
May 10, 2005 08:04AM


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.