easy:

linux/unix:
mysql -h myhost -u myuser -p [mydatabase] < mysqcript.sql

nt:
type myscript.sql | mysql -h myhost -u myuser [mydatabase]

where "mydatabase" is optional.

tip: read the manual, it's all in there :)

gl

rene


----- Original Message -----
From: "Andris Jancevskis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001-02-15 10:57 AM
Subject: executing script file


> Hi,
>
>   I didn't find any information on possibility to execute script file.
>   On oracle it is possible via @file_name command from client.
>   Is it possible on mysql? I want to update 3 different databases
>   to keep these equvalent.
>
> TIA,
> --
> Andris
> mailto:[EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> 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
>


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