Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 91018 invoked from network); 13 Jan 2010 22:06:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 22:06:53 -0000 Received: (qmail 37203 invoked by uid 500); 13 Jan 2010 22:06:53 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 37146 invoked by uid 500); 13 Jan 2010 22:06:53 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 37136 invoked by uid 99); 13 Jan 2010 22:06:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 22:06:53 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.6.16.227] (HELO smtp.nist.gov) (129.6.16.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 22:06:43 +0000 Received: from WSXGHUB1.xchange.nist.gov (wsxghub1.nist.gov [129.6.18.96]) by smtp.nist.gov (8.13.1/8.13.1) with ESMTP id o0DM622b029416 for ; Wed, 13 Jan 2010 17:06:02 -0500 Received: from MBCLUSTER.xchange.nist.gov ([fe80::d479:3188:aec0:cb66]) by WSXGHUB1.xchange.nist.gov ([2002:8106:1260::8106:1260]) with mapi; Wed, 13 Jan 2010 17:06:01 -0500 From: "Bullard, Jeffrey W. Dr." To: "ddlutils-user@db.apache.org" Date: Wed, 13 Jan 2010 17:06:19 -0500 Subject: Re: newbie can't connect to/export from MySQL with ant task Thread-Topic: newbie can't connect to/export from MySQL with ant task Thread-Index: AcqUkflvN3p00OIWSAabFgotevHhRAACqi7I Message-ID: In-Reply-To: <224f32341001131248k56824865sed42c8700821d954@mail.gmail.com> Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_C773AE0BCF4jeffreybullardnistgov_" MIME-Version: 1.0 X-NIST-MailScanner: Found to be clean X-NIST-MailScanner-From: jeffrey.bullard@nist.gov X-Virus-Checked: Checked by ClamAV on apache.org --_000_C773AE0BCF4jeffreybullardnistgov_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks, Tom, that was a big help, and now the problem seems to be solved. = Here's what I did: I installed SquirrelSQL and tried to connect to the same MySQL database, an= d I received the following error when I tried to specify the com.mysql.jdbc= .Driver driver: Could not find class com.mysql.jdbc.Driver in neither the Java class path n= or the Extra class path of the MySQL Driver driver definition: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver So the driver wasn't found, which led me to suspect that the mysql-connecto= r-java-3.1.12-bin.jar was not in my CLASSPATH. So I added it to my CLASSPA= TH and now everything seems to be working fine. Not really a DdlUtils issu= e after all, but you really helped me out. Thanks again. Jeff On 1/13/10 3:48 PM, "Thomas Dudziak" wrote: Since Ddlutils doesn't do anything unusual as far as JDBC is concerned, could you try to connect with that connection information and the same driver jar, e.g. by using SquirrelSQL or something similar (but Java/JDBC based) ? Tom On Wed, Jan 13, 2010 at 12:45, Jeffrey W. Bullard wrote: > I added the verbosity parameter to the task like this in the build.xml fi= le: > > > driverClassName=3D"com.mysql.jdbc.Driver" > username=3D"root" > password=3D"vcctl7"/> > > > > > > but the output to stdout is exactly the same as before. Is there a log f= ile > somewhere that I should be checking? > > Jeff > > On Jan 13, 2010, at 3:29 PM, Thomas Dudziak wrote: > >> Could you increase the verbosity of the task (see >> >> http://db.apache.org/ddlutils/ant/org.apache.ddlutils.task.DatabaseToDdl= Task.html) >> to debug to get more detail logging, and post that here ? >> >> Tom >> >> On Wed, Jan 13, 2010 at 11:20, Jeffrey W. Bullard >> wrote: >>> >>> Hi, >>> >>> I'm trying to export a MySQL database using DdlUtils. I went through a >>> tutorial (http://db.apache.org/derby/integrate/db_ddlutils.html) that >>> showed >>> how to export a derby DB and I'm trying to modify the build.xml file to >>> do >>> the same thing for a MySQL database on my local machine. The build.xml >>> file >>> is copied below. >>> >>> When I run "ant export-source-db", I get the following error: >>> >>> BUILD FAILED >>> build.xml:16: Could not read the schema from the specified database: >>> Could >>> not get a connection from the datasource >>> >>> I have no doubt that my line 16 is wrong, but I cannot find any >>> information >>> about the correct format for connecting to a MySQL database. The full >>> path >>> to the database on my machine is /usr/local/mysql/data/vcctl_user >>> >>> Other information: My mysql server is definitely running on the machin= e, >>> and the vcctl_user database can be accessed from within mysql from the >>> command line (show tables, etc.). >>> >>> Thanks in advance for any help about how I can properly connect to MySQ= L >>> database. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> data"> >>> >> classname=3D"org.apache.ddlutils.task.DatabaseToDdlTask"> >>> >>> >>> >>> >>> >> driverClassName=3D"com.mysql.jdbc.Driver" >>> username=3D"root" >>> password=3D"vcctl7"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> > > --_000_C773AE0BCF4jeffreybullardnistgov_--