MYSQL DATASOURCE ERROR

Ask a Question related to Coldfusion Server Administration, Design and Development.

  1. #1

    Default MYSQL DATASOURCE ERROR

    I'm having some issues connecting MYSQL 5.0 DB to coldfusion mx 7, basiclly I
    can't created a datasource. Oh and I get this error message.

    Connection verification failed for data source: storedb
    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? is there a way to fic
    this??

    reya276 Guest

  2. Similar Questions and Discussions

    1. 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...
    2. Different MySQL Datasource Error
      I've looked through the forum topics to see if there was an answer to my problem but not found one. I cannot create MX 6.1 Datasources in a MySQL...
    3. CFMX and MySQL Datasource Connection Error
      Summary: Unable to create datasource for MySQL database successfully. I have followed the steps for...
    4. MySQL datasource
      Hi all, I get an error creating a datasource with a mysql db on my pc. I am using the MySQL (3.x) driver. Thanks for any pointers as to what the...
    5. Datasource on MySql
      Trying to set up a datasource on MySql : I had an error message as in this link below. I followed this information :...
  3. #2

    Default Re: MYSQL DATASOURCE ERROR

    I suspect that the MySQL 5.0 service is not running. Make sure it is.




    BKBK Guest

  4. #3

    Default Re: MYSQL DATASOURCE ERROR

    The server is running, this is a JDBC driver issue, anyone with this problem needs to download the version of the driver [url]http://www.mysql.com[/url]
    reya276 Guest

  5. #4

    Default Re: MYSQL DATASOURCE ERROR

    I have the same issue and downloaded the JDBC driver. But I am new to JDBC. CAn
    anyone give an example of how it is configured via the CF Admin?
    JDBC URL: is this the path to it on the server? C:JRUN\...
    Driver Class: is this the Environmental Class path?
    Driver Name: mysql-connector-java-3.1.2-bin.jar

    Thanks in advance


    WaveRunner Guest

  6. #5

    Default Re: MYSQL DATASOURCE ERROR

    dude here is the instructions, this should get you going if you have any other issues let me know.
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19170[/url]
    reya276 Guest

  7. #6

    Default Re: MYSQL DATASOURCE ERROR

    Those directions are not detailed, and they do not work for me... I've been
    programming for 6 years in Cold Fusion, never had to use MySQL until now but I
    do know my way around and cannot get this DSN to connect.

    Nick_KC Guest

  8. #7

    Default Re: MYSQL DATASOURCE ERROR

    Get the Driver here: [url]http://www.mysql.com/products/connector/j/[/url]

    if you are running on a windows enviornment the path would be
    C:\CFusionMX7\wwwroot\WEB-INF\lib

    1. Place the mysql-connector-java-3.1.10-bin.jar in
    C:\CFusionMX7\wwwroot\WEB-INF\lib

    2. Then restart the coldfusion application server

    3. Then open the CF admin and go to the datasource page and on the dropdown
    select "Other" and enter a name for it.

    For example:

    Name the data source MySQL_test when it will connect to the test database.
    Note: There is a test database installed by default in the MySQL server.
    Select Other in the driver field to tell ColdFusion you will describe another
    type of driver.
    Click Add to add the data source and display the default driver window for
    this driver.

    4. Enter the following in the JDBC URL field:
    jdbc:mysql://localhost:3306/DB name

    5. Enter the following in the Driver Class field:
    enter this (com.mysql.jdbc.Driver)

    6. Enter a valid username and password in the Username and Password fields
    Where the username and password are defined as user account information on the
    database server.

    (Optional) Enter the name of the driver in the Driver Name field.

    this should get you going just follow these instructions. if it does not work
    correctly I suggest using MYSQL 4.0 Unless you need to use Store Procedures
    then you will have to wait until someone else comes up with a different answer
    but I think you should be fine.






    reya276 Guest

  9. #8

    Default Re: MYSQL DATASOURCE ERROR

    I've seen those directions a hundred times now and again they don't work for
    me! Thanks though, but I have NO trouble finding those same directions over
    and over and over when I try to find an answer to why Cold Fusion MX does not
    connect to MySQL 4.1 or 5.0 with ANY of the drivers I've downloaded. I guess I
    need screenshots of every tiny little step because I am obviously not doing it
    right if it works for everybody else but me... Is there some "special" way to
    install a .jar file other than extracting a zip file and then copying the .jar
    file into the right directory in Cold Fusion? I've tried every combination,
    uninstalled and reinstalled MySQL 4.1 and 5.0 and tried all combinations of the
    J connector. It's crazy...

    Nick_KC Guest

  10. #9

    Default Re: MYSQL DATASOURCE ERROR

    Ok send me the screen shots of your Admin where you are entering the datasource
    at [email]reya276@yahoo.com[/email] and see if we can figure this out, because I just
    installed mysql 5.0 yesterday and corrected this problem I don't see no reason
    why we can get it to work for you.

    reya276 Guest

  11. #10

    Default Re: MYSQL DATASOURCE ERROR

    it does work nick...I've got MySQL 4.0, 4.1 and 5.0 all running on my
    dev machine (WinXP CFMX7.01 IIS) using the
    mysql-connector-java-3.1.12-bin.jar and no problems so far....don't give
    up. Maybe it's a firewall or a port problem or TCPIP or old passwords?
    I've run into many...post your detailed problems and one of us should be
    able to help.

    Good luck
    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

  12. #11

    Default Re: MYSQL DATASOURCE ERROR

    You guys are awesome, motivating, and I appreciate the encouragement. My
    apologies for getting frustrated and almost blowing a lid... I'm working on it
    now and I'll get some screen shots in just a bit.

    Nick_KC Guest

  13. #12

    Default Re: MYSQL DATASOURCE ERROR

    I've sent both of you screenshots, if you can determine anything please let me know. I am open to anything at this point and very frustrated again...
    Nick_KC Guest

  14. #13

    Default Re: MYSQL DATASOURCE ERROR

    For this error :
    Connection verification failed for data source: storedb
    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? is there a way to fic
    this??

    There are a few significant steps to make it connecting...

    1. Make sure you have installed stable connector version.
    2. Use 'Other' driver instead of select the existing MySQL driver option in CF.

    May this help -->
    [url]http://www.talkingtree.com/blog/index.cfm?mode=entry&entry=25AA9A56-45A6-2844-7A[/url]
    60CF5B3666D010



    Charles Ng Guest

  15. #14

    Default Re: MYSQL DATASOURCE ERROR

    All,

    Thanks for the help!
    I finally got it to work but had to use the updated (beta) 5.0 driver. 3.1.12
    would not work.
    Here is a note from [url]http://www.macromedia.com/go/tn_19170[/url]

    Additional Information
    Connector/J version 3.1 release 3.1.11 and higher cannot be used with
    ColdFusion MX 7 because of mySQL Bug 13469. Connector/J 3.1.10 should be used
    instead of the current release until this MySQL bug is fixed. All Connector/J
    version 3.0 releases and all (currently beta) version 3.2 releases work with
    ColdFusion MX 7.Texthttp://www.macromedia.com/go/tn_19170

    I could not find 3.1.10 to use so I tried the 5.0.0 beta and have connected.

    Regards

    WaveRunner Guest

  16. #15

    Default Re: MYSQL DATASOURCE ERROR

    Quote Originally Posted by reya276 View Post
    Get the Driver here: [url]http://www.mysql.com/products/connector/j/[/url]

    if you are running on a windows enviornment the path would be
    C:\CFusionMX7\wwwroot\WEB-INF\lib

    1. Place the mysql-connector-java-3.1.10-bin.jar in
    C:\CFusionMX7\wwwroot\WEB-INF\lib

    2. Then restart the coldfusion application server

    3. Then open the CF admin and go to the datasource page and on the dropdown
    select "Other" and enter a name for it.

    For example:

    Name the data source MySQL_test when it will connect to the test database.
    Note: There is a test database installed by default in the MySQL server.
    Select Other in the driver field to tell ColdFusion you will describe another
    type of driver.
    Click Add to add the data source and display the default driver window for
    this driver.

    4. Enter the following in the JDBC URL field:
    jdbc:mysql://localhost:3306/DB name

    5. Enter the following in the Driver Class field:
    enter this (com.mysql.jdbc.Driver)

    6. Enter a valid username and password in the Username and Password fields
    Where the username and password are defined as user account information on the
    database server.

    (Optional) Enter the name of the driver in the Driver Name field.

    this should get you going just follow these instructions. if it does not work
    correctly I suggest using MYSQL 4.0 Unless you need to use Store Procedures
    then you will have to wait until someone else comes up with a different answer
    but I think you should be fine.
    This helped me, thank you so much! I'm on CF9.01 and trying to setup mySQL for the first time. I'm a MSSQL person :) I had the same connection problem some of the other above had.
    Unregistered 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