Hi,

I have approx. 110 SQL scripts in a directory. Each containing DROP TABLE, CREATE 
TABLE, lots of INSERT INTO and finally a COMMIT.
I need to run all these script in mysql console.

My plan is to write a perl script that looks into the directory and fetch all *.sql 
scripts and then execute them in mysql console. But I can't running the mysql console 
with a script as parameter. I have tried the following commands:

mysql --user=USER --password=PASSWORD DATABASE \. C:/Files/data/WI_UPUSER.sql
mysql --execute=C:/Files/data/WI_UPUSER.sql --user=USER --password=PASSWORD DATABASE

None of them works!

How can I do this?

BR
Joacim

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