Manuel Dugué wrote:
> 
> Hi,
> I created some Scripts of the Type *.sql. In these Scripts there are pure
> SQL Statements, seperated by a ';'. How can I execute those Scripts
> (automated) in mySQL?
mysql -u ... -p.. -h ... < scr1.sql  
etc.

> Is there a possibility to make one Script, that starts other scripts...
> Can anybody help me?
put them in a shell script, say run.csh (or sh or bash or ksh ...):
mysql -u ... -p.. -h ... < scr1.sql
.....
mysql -u ... -p.. -h ... < scr100.sql

then just run run.csh

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