MySQL datasource connection trouble

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. CFMX and MySQL Datasource Connection Error
      Summary: Unable to create datasource for MySQL database successfully. I have followed the steps for...
  3. #2

    Default Re: MySQL datasource connection trouble

    On 2005-06-22 11:26:40 -0500, "pieround" <webforumsuser@macromedia.com> said:
    > 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
    This means it isn't seeing your driver. Check the "MySQL and CF"
    thread in this forum for some additional suggestions.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion

    mpwoodward *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139