First snow from the castle of Ljubljana
Wednesday, November 21st, 2007.jpg)
Some more pictures here.
.jpg)
Some more pictures here.
Many people had this problem with MySQL “refusing” JDBC connections on all the distros.
The trick is, that by default MySQL is configured with the ’skip-networking’ property in my.cnf. If you want JDBC to work you will have to disable it.
But, there’s another trick, on Slackware for example there’s the ‘–skip-networking’ switch enabled by default in /etc/rc.d/rc.mysqld , so you will have to comment out the line defining the ‘SKIP’ variable.
skip-networking disables MySQL’s tcp socket listener and leaves only the Unix socket open. JDBC on the other hand connects only trough tcp sockets, so that’s the problem.
To be sure that skip-networking is disabled it is better to take a look in all MySQL related scripts, configs and other files.