Ask a Question related to Coldfusion Database Access, Design and Development.
-
pieround #1
MySQL datasource connection trouble
I am really new to ColdFusion and I may be missing something pretty simple.
However, I looked through the online macromedia documentation and found others
who were recieving the same error when attempting to connect a MySQL data
source, however as of yet they had not been replied to on the forums.
The error is:
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?
The root cause was that: java.sql.SQLException: Communication failure during
handshake. Is there a server running on 127.0.0.1:3306?
After posting the problem on the Dev Shack forums I got the following response:
-------------------------------------------------------------
To get CF to talk to MySQL 4.1, you need to download the latest JDBC drivers
from mysql.com (in the Developer Zone tab, listed as Connector/J). 3.1.9 is the
latest (as of this post). From there, unzip the package and drop everything
into the c:\CFusionMX\wwwroot\WEB-INF\lib folder. You might want to backup that
folder to be on the safe side, I did...
Anyways, after that, restart CF. In the CF admin, go to Data Sources and add a
new datasource using 'other' as the driver type. Your JDBC url will be
'jdbc:mysql://[hostname][:port]/[schema]'. (i.e.
jdbc:mysql://localhost:3306/mainDB) Your driver class will be
'com.mysql.jdbc.Driver'. You can name the driver whatever you want, I use MySQL
4.1. If you have a username/password, enter it, and you should be good to go.
---------------------------------------------------------------------
However, after attempting to do this I get the following error when trying to
create the datasource as 'other':
Connection verification failed for data source: testMysql
[]java.sql.SQLException: No suitable driver available for testMysql, please
check the driver setting in resources file, error: com.mysql.jdbc.Driver
The root cause was that: java.sql.SQLException: No suitable driver available
for testMysql, please check the driver setting in resources file, error:
com.mysql.jdbc.Drive
I am running the latest version of My SQL, a windows version of Apache HTTP
Server 2.0.54 as my testing server, and CF 6.1 Developer edition. I've also
updated my ODBC driver as well. Any suggestions as to what I'm doing wrong?
pieround Guest
-
DB2 Datasource Connection problems
I have been using DB2 for a number of years by installing the DB2 v7 client on the CF server, and creating a datasource via an ODBC socket. This... -
Datasource connection with XP Home?
I get an error in ColdFusion administrator for any database that I try to set-up. I have XP Home edition, so am using the CF server as the only web... -
Datasource connection problem
I'm running MS SQL 2000, Coldfusion MX7 on Windows 2003 SP1. I'm getting the following error when I try to create a datasource in the Coldfusion... -
can't verify mySQL datasource - works in mySQL, but notin CF7
I can't verify a local mySQL datasource in ColdFusion 7 admin. I am using Dreamweaver MX 2004 with the CF7 extensions installed. I am developing... -
CFMX and MySQL Datasource Connection Error
Summary: Unable to create datasource for MySQL database successfully. I have followed the steps for... -
mpwoodward *TMM* #2
Re: MySQL datasource connection trouble
On 2005-06-22 11:26:40 -0500, "pieround" <webforumsuser@macromedia.com> said:
This means it isn't seeing your driver. Check the "MySQL and CF"> Connection verification failed for data source: testMysql
> []java.sql.SQLException: No suitable driver available for testMysql,
> please check the driver setting in resources file, error:
> com.mysql.jdbc.Driver
> The root cause was that: java.sql.SQLException: No suitable driver
> available for testMysql, please check the driver setting in resources
> file, error: com.mysql.jdbc.Drive
thread in this forum for some additional suggestions.
Matt
--
Matt Woodward
[email]mpwoodward@gmail.com[/email]
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest



Reply With Quote

