Hello,

In the directory you have your .sql script, run this:

mysql < myquery.sql

Remember to change the file name, though. :-)

Regards,
Iikka

On Thu, 5 Sep 2002, Horacio Santoyo wrote:

> Hello mySQL users,
>
> I'm a new mySQL user, just installed it two days ago.
> I have a quick question...   I have a .sql script that I want to run on
> mySQL server.  I have a Windows XP machine and when I read the mySQL manual,
> I think they were talking about a Unix machine.  This is what the manual
> said to do...  "shell> mysql < batch-file"
>
> But my command line looks like this... "mysql>"
> so how do I run the script?
>
> This is probably a real simple question, but I can't figure it out yet.
>
> Thanks
>
> --Horacio
>
>
> ---------------------------------------------------------------------
> 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
>

******************************************
* Iikka Meriläinen                       *
* E-mail: [EMAIL PROTECTED] *
* Vaala, Finland                         *
******************************************


---------------------------------------------------------------------
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