Errors that may occur when CFMX is connected to MySQL4.1

Source: Internet
Author: User

The following articles mainly introduce the actual solutions that often encounter errors when CFMX connects to MySQL4.1. After upgrading the MySQL database to MySQL 4.1 today, an error occurs in the database that the program is connected, the admin data source cannot be connected. The error message is as follows:

 
 
  1. Connection verification failed for data source: 
    mysql_bad java.sql.SQLException: 
    Communication failure during handshake.Is there a server running on localhost:3306?  
  2. The root cause was that: java.sql.SQLException: 
    Communication failure during handshake. Is there a server running on localhost:3306? 

I remember reading a blog and mentioning the solution, so "Hurry up"

First to mysql.com next to the latest JDBC driver, and then back to the compressed package in the "mysql-connector-java-3.1.6-bin.jar"
Put it in $ CFMX_HOME/runtime/servers/lib/(for CFMX Server Configuration) or $ JRUN_HOME/servers/lib/(for CFMX on JRun Configuration). for example, my machine is: C: \ blackstone \ runtime \ lib

Then restart CFMX.

Redefine the data source. In the "Driver" drop-down box, select "other". The following configuration is shown:


The data source is added successfully after submission.

An error occurred while updating the data source to mysql4.1 because the jdbc driver of cfmx is still old.

I believe that MM will update the built-in JDBC driver soon, but it is old in blackstone beta2.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.