Skip to main content
Participant
December 9, 2009
Question

CFMX7 MySql5 Apache2.2 Ubuntu

  • December 9, 2009
  • 1 reply
  • 410 views

I'm having issues with a new Ubuntu server running CFMX7 and Mysql5, both are up and running, Apache's happy, I can get to CF admin....

I can connect to Mysql:3306 using Mysql Admin tool from my laptop, I can't however connect Datasources from cfadmin. Using the following:

CF data source nametest
Description
DriverMySQL
JDBC URLjdbc:mysql://127.0.0.1:3306/mysql?
Usernameroot
Login timeout30 seconds
Long text buffer size64000
Timeout1200 seconds
Maintain connectionsYes
Interval420 seconds
Restricted SQL operations
Disable connectionsNo


I get error out:

Connection verification failed for data source: test
java.sql.SQLException: Communication failure during handshake. Is there a server running on 127.0.0.1:3306?

I've also tried the connection using "localhost", but get the same error........

Not sure what to do at this piont.........

This topic has been closed for replies.

1 reply

ilssac
Inspiring
December 9, 2009

Anything running that could be blocking that ip or port?

Participant
December 9, 2009

Thanks for your reply..

I assume since I can connect to Mysql from my

laptop on port 3306 with the Mysql Admin that that port is open.....

correct?

Participant
December 10, 2009

Looks like I found the answer...

1. Mysql connector was to new for cfmx7 had to use connector/j 3.1.10

2. Connected as follows:

Slect driver as "other"

DBURL = jdbc:mysql://localhost:3306/myDatabase

Driver class = com.mysql.jdbc.Driver

Driver name = mysql

name

password

Connected right up!