MySQL Forums
Forum List  »  Connector/Python

Help with Jython and MySQL in Debian GNU/Linux
Posted by: Tuque tecrees
Date: April 06, 2005 08:27AM

I have a little project based on jython scripts that query a MySQL
database. When I execute one of them it, I obtain an error (pasted in the end of this
message). I can access the database from the same shell by doing
mysql -u me -p, but the script doesn't seem to be able to connect to the
database.

Any clues of what can be going on? Many thanks.

The error:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused
at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:151)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1699)
at com.mysql.jdbc.Connection.<init>(Connection.java:405)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :268)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.ziclix.python.sql.connect.Connect.__call__(Connect.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx0.f$0(parent_retriever.py:6)
at org.python.pycode._pyx0.call_function(parent_retriever.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.__builtin__.execfile_flags(__builtin__.java)
at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
at org.python.util.jython.main(jython.java)


** END NESTED EXCEPTION **

Options: ReplyQuote


Subject
Written By
Posted
Help with Jython and MySQL in Debian GNU/Linux
April 06, 2005 08:27AM


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.