Hi,
I'm trying install a  Mysql database using nant, this is a part of my build
file:
<target name="CreateStructure" description="Creating Database" >
    <exec program="mysql" append="True" verbose="True" commandline="-h
localhost -u root -pholamundo">
        <arg value="CreateDataBase.sql" />
    </exec>
    <exec program="mysql" append="True" verbose="True"
                commandline="-h localhost -u root -pholamundo -e source " >
      <arg value="Populatelookups.sql" />     
    </exec> 
  </target>

My problem is with: How to put the name of the script to execute ??


Really, I want execute a command like this:

mysql -h localhost -u root -pholamundo < Script1.sql



any commnet or help =) ?



-- 
View this message in context: 
http://www.nabble.com/Executing-a-mysql-script-inside-Nant-tp16256023p16256023.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to