devries Posted August 6, 2005 Report Share Posted August 6, 2005 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? Quote Link to comment Share on other sites More sharing options...
fissy Posted August 6, 2005 Report Share Posted August 6, 2005 From a position of no knowledge at all... - You're using jdbc, do you need the myodbc package installed so jdbc and mysql can talk? - Do they perhaps talk over tcp/ip and you need to tell mysql to listen? Quote Link to comment Share on other sites More sharing options...
devries Posted August 9, 2005 Author Report Share Posted August 9, 2005 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 :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.