Comments on: Execute MySQL Script from Java http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/ It's Just Links Wed, 14 Sep 2011 13:47:04 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: Sebastian http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-146388 Sebastian Mon, 02 Feb 2009 18:19:01 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-146388 Hello, I have the solution: use "source " + scriptpath instead... don´t use the "\"" for linux. good luck Hello,
I have the solution:
use “source ” + scriptpath instead… don´t use the “\”" for linux.

good luck

]]>
By: Diogo http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-143559 Diogo Thu, 22 Jan 2009 10:12:16 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-143559 Hi, I have the same problem as Felipe. I run the java code and the only output I get is "exit value = 1" . But if I run the same command in a shell it runs perfect. Anybody has any idea?Maybe is the path to the script that i want to run? thanks in advance. Hi,
I have the same problem as Felipe. I run the java code and the only output I get is “exit value = 1″ . But if I run the same command in a shell it runs perfect. Anybody has any idea?Maybe is the path to the script that i want to run?
thanks in advance.

]]>
By: PrabhuRangan http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-135852 PrabhuRangan Thu, 18 Dec 2008 09:28:51 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-135852 Hi All, This works fine in windows. However im facing some issues in LINUX. Any one have any idea please share with me..? Regards, Prabhu. Hi All,

This works fine in windows. However im facing some issues in LINUX. Any one have any idea please share with me..?

Regards,
Prabhu.

]]>
By: Felipe Melo http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-48124 Felipe Melo Tue, 08 Jan 2008 16:15:38 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-48124 Hi, In Windows, it's quite alright(although I had to add "cmd" to the commands list). But in Linux, it does not work anyway. I get exit value=1, but nothing else happens, beyond the schema I try to use seems to get locked. But the most strange is that if I try to type the same commands in command line, it works pretty fine, what makes me think that mysql version isn`t the issue. Any ideas? Regards. Hi,
In Windows, it’s quite alright(although I had to add “cmd” to the commands list). But in Linux, it does not work anyway. I get exit value=1, but nothing else happens, beyond the schema I try to use seems to get locked. But the most strange is that if I try to type the same commands in command line, it works pretty fine, what makes me think that mysql version isn`t the issue.
Any ideas?

Regards.

]]>
By: Tony Spencer http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-310 Tony Spencer Thu, 12 Jan 2006 03:59:54 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-310 hi bernard, yes i have also run this on linux with no problem. perhaps you have a different version of mysql on your linux box. hi bernard,
yes i have also run this on linux with no problem. perhaps you have a different version of mysql on your linux box.

]]>
By: bernard http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/comment-page-1/#comment-309 bernard Wed, 11 Jan 2006 19:50:21 +0000 http://www.tonyspencer.com/2005/01/20/execute-mysql-script-from-java/#comment-309 Hello, This script seems to work OK for me on Windows but I get a SQL syntax '"source myfile"' please check you code message when running on Linux. Did this code work on linux for you?? Hello,

This script seems to work OK for me on Windows but I get a SQL syntax ‘”source myfile”‘ please check you code message when running on Linux.

Did this code work on linux for you??

]]>