{"id":1136,"date":"2022-08-30T15:12:59","date_gmt":"2022-08-30T15:12:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/error-using-ant-to-create-mysql-database-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:12:59","modified_gmt":"2022-08-30T15:12:59","slug":"error-using-ant-to-create-mysql-database-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/error-using-ant-to-create-mysql-database-collection-of-common-programming-errors\/","title":{"rendered":"Error using Ant to create mysql database-Collection of common programming errors"},"content":{"rendered":"<p>In the JDBC tutorial folder&#8217;s <em>build.xml<\/em> file, search for the string &#8220;create-mysql-database&#8221;; the string labels a task defined in the <em>.xml<\/em> file. Identify the value for the &#8220;password&#8221; parameter in that block of text (easier when reading the text with highlighting programs such as <em>Dashcode<\/em>), and change it to something that works with the system&#8217;s databases (in my case &#8220;&#8221;).<\/p>\n<p>Having found what the string was in &#8220;password&#8221; before editing, find that same string throughout the <em>.xml<\/em> file and replace it with the correct password<\/p>\n<p>Lesson: Apparently <em>ant<\/em> takes the string you passed in when invoking it (i.e. the string after the string &#8220;ant&#8221;), and looks for it in the <em>build.xml<\/em> present in the directory at which you invoked the program. Don&#8217;t have the wrong password&#8230;<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:31:38. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>In the JDBC tutorial folder&#8217;s build.xml file, search for the string &#8220;create-mysql-database&#8221;; the string labels a task defined in the .xml file. Identify the value for the &#8220;password&#8221; 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&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1136","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1136"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1136\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}