On Tue, 2002-10-22 at 16:24, Fernando Grijalba wrote:
> You can try this;
> 
> mysql>source /path/source.sql
> 
> or:
> 
> $>mysql -uuser -ppassword DBname < filename.sql
> 
> HTH
> 
> JFernando
> ** sql ***
> 
> -----Original Message-----
> From: Andre Kirchner [mailto:sieg1974@;yahoo.com]
> Sent: October 22, 2002 15:58
> To: [EMAIL PROTECTED]
> Subject: How to execute sql commands from a file?
> 
> 
> Hi there,
> 
> is there a way to execute sql commands from a file?
> What would be the syntax to do it?
> I was trying mysql> @theFile, but it doesn't work.
> 
> Thanks,
> 
> Andre
> 
Also  the mysql --help shows that \. <filename> does it from the command prompt.


John Coder




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to