I know there are loads of posts about this all over the internet... but I've read so many in the last few hours and I can't create a single datasource in my Railo install despite trying multiple tips from multiple posts.
I'm running Railo 3.2.2, on Apache 2.2, with MySQL 5.0
I've tried setting up 2 datasources but I get the same errors on both:
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.ConnectException
MESSAGE: Connection refused
STACKTRACE:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
...
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Unknown Source)
** END NESTED EXCEPTION **
Last packet sent to the server was 1 ms ago.
The username and password and database all work, they work in phpmyadmin and they work in the command line.
I've granted "all" permissions in MySQL
I've tried setting up a MySQL datasource and also an Other -JDBC one with the following:
class: com.mysql.jdbc.Driver
I've also tried localhost and 127.0.0.1, and it makes no difference.
I can supply the full stack trace if necessary.
Does anyone have any ideas how to fix this? I really want to use Railo! I can't go back to PHP!