Jump to content

Openoffice.org2.0 + MySQL


devries
 Share

Recommended Posts

I'm trying to setup OOo with MySQL but it doesn't work. When I use the wizard (file, new, database) I can get the JDBC driver to load but when I want to make a connection on localhost I get this error:

 

SQL-status: 08S01

 

Unable to connect to any hosts due to exception: java.net.SocketException: java.net.ConnectException: Connection refused

 

** 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.java:143)

at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:1805)

at com.mysql.jdbc.Connection.<init>(Connection.java:452)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)

 

 

** END NESTED EXCEPTION **

 

I've tried 3 versions of Java, 2 different jdbc drivers, various mysql users but it won't go. Anyone have any idea?

Link to comment
Share on other sites

Ok I found the solution. It was a problem with tcp/ip like you said. In fact I had found the solution (removing the --skip-networking option) from a config file but the site I found it said remove it from /etc/my.cnf and it should be removed from /etc/sysconfig/mysqld.....

 

Oh well. Not really important. I just needed a database for my adressbook. Lucky I hadn't begun putting in too many adresses in the replacement :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...