Hi fellows,


I've been trying to execute a MySQL script to create a database using NAnt, as one of some tasks the NAnt script has to execute.

My database create script is in a file named Manufatura_DBCreate.sql and, when I execute this command directly from a DOS prompt, it correctly works, creating the database:
c:/mysql/bin/mysql -e "source c:/mysql/bin/Manufatura_DBCreate.sql" > c:/mysql.out

But, from the NAnt's script (after installing and starting MySQL's service inside the script), I got this message:

mysql:

     [exec] c:/mysql/bin/mysqld-max-nt --install
            Service successfully installed.
     [exec] net start MySQL
            MySQL was successfully started.

     [exec] c:/mysql/bin/mysql -e "source c:/mysql/bin/Manufatura_DBCreate.sql" > c:/mysql.out
            c:/mysql/bin/mysql  Ver 12.22 Distrib 4.0.18, for Win95/Win98 (i32)
            Copyright (C) 2002 MySQL AB
            This software comes with ABSOLUTELY NO WARRANTY. This is free software,
            and you are welcome to modify and redistribute it under the GPL license
            Usage: c:/mysql/bin/mysql [OPTIONS] [database]
              -?, --help          Display this help and exit.
              --auto-rehash       Enable automatic rehashing. One doesn't need t....

Do you have any ideas what's going on? It simply prompts for MySQL's help and leave away the database's script execution.

Thank in advance for any help,
Wilson.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to