Error using Ant to create mysql database-Collection of common programming errors

In the JDBC tutorial folder’s build.xml file, search for the string “create-mysql-database”; the string labels a task defined in the .xml file. Identify the value for the “password” parameter in that block of text (easier when reading the text with highlighting programs such as Dashcode), and change it to something that works with the system’s databases (in my case “”).

Having found what the string was in “password” before editing, find that same string throughout the .xml file and replace it with the correct password

Lesson: Apparently ant takes the string you passed in when invoking it (i.e. the string after the string “ant”), and looks for it in the build.xml present in the directory at which you invoked the program. Don’t have the wrong password…

Originally posted 2013-11-09 23:31:38.