Re: how to import mysql database using java
Hi,
Maybe changing your exception handling to print the stack trace would help identify the root cause:
e.printStackTrace();
I tried a variant of the command you issued, and found my Exception caused by incorrectly giving the path to the mysql executable (mine is not in global PATH). The stack trace should help identify the root cause.
I'll note that it's generally not a good plan to process SQL scripts via shell calls like that from Java.
Hope that helps.
--
Todd Farmer
MySQL @ Oracle
http://www.oracle.com/mysql/
Subject
Written By
Posted
Re: how to import mysql database using java
July 17, 2012 10:53AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.