MySQL Forums
Forum List  »  Newbie

Re: how to run an existing sql file
Posted by: Ramalingam Chelliah
Date: August 15, 2004 10:02PM

Hi ,
I think you made a mistake in 'redirection' operator...( >)

Use ('<') instead..

Like this ...
mysql -h hostname -u username -p -D databasename < F:\Examples\chapter09\book_insert.sql

Otherwise login first ...
then exute your SQL file like ...

mysql>\. F:\Examples\chapter09\book_insert.sql

Refer :
http://dev.mysql.com/doc/mysql/en/Batch_Commands.html

Hope this helps...

Regards,
Ram.

Options: ReplyQuote


Subject
Written By
Posted
August 15, 2004 05:16PM
Re: how to run an existing sql file
August 15, 2004 10:02PM


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.