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

  1. #1

    Default 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 :
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url] Which
    says :
    --------------------------------------------------------------------------------
    -------------------------------- When using the MySQL Driver provided in the
    list of driver options in the ColdFusion MX Administrator to connect to a MySQL
    4.1 database, the following error may occur: Connection verification failed
    for data source: mysql_bad java.sql.SQLException: Communication failure during
    handshake. Is there a server running on localhost:3306? The root cause was
    that: java.sql.SQLException: Communication failure during handshake. Is there a
    server running on localhost:3306? Reason The MySQL 4.1 database
    authentication mechanism has changed since earlier versions, and earlier MySQL
    JDBC drivers will not work unless either MySQL is configured to use the former
    authentication mechanism or a current version of the driver is used instead.
    Solution To connect to a MySQL 4.1 database from ColdFusion MX: Download a
    current, stable version of the MySQL Connector J JDBC driver, available at:
    [url]http://dev.mysql.com/doc/connector/j/en/index.html[/url] Extract the
    mysql-connector-java-3.{n}-bin.jar file from the downloaded archive file. Save
    the mysql-connector-java-3.{n}-bin.jar file in the cf_root/WEB-INF/lib
    directory. Restart the ColdFusion MX server. Add a new data source to the
    ColdFusion MX Administrator, using the driver option Other. Enter the JDBC
    URL: jdbc:mysql://[host]:[port]/[database] Enter the Driver Class:
    com.mysql.jdbc.Driver Complete username/password, and adjust other data source
    settings, if needed. Submit the data source for verification.
    --------------------------------------------------------------------------------
    ----------- But this form ask me an other field which I do not know what to
    answer : Driver name ? ok for JDBC URL ok for driver class when submitting, I
    have this message : Echec de v?rification de la connexion pour la source de
    donn?es : test_mysql []java.sql.SQLException: No suitable driver available for
    test_mysql, 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 test_mysql, please check the driver setting in
    resources file, error: com.mysql.jdbc.Driver Also the procedure says : Save
    the mysql-connector-java-3.{n}-bin.jar file in the cf_root/WEB-INF/lib
    directory. What is : cf_root/WEB-INF/lib ? what is cf_root ? I have a
    CFusionMX directory with 'WEB-INF/lib' in the wwwroot of CFusionMX but I use
    IIS as HTTP server, and there is no 'WEB-INF/lib' in the wwwroot directory.
    Is there somewhere a clear and complete procedure to set up a datasource on
    MySql ? Thanks to help this mes. Pierre.

    plarts Guest

  2. Similar Questions and Discussions

    1. 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. ...
    2. 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...
    3. 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...
    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. CFMX 7 cannot add MySQL datasource
      Hi. I have installed CFMX 7 and its working amazing. I have a local MySQL databse running on 127.0.0.1 port 3306. I am trying to add a datasource...
  3. #2

    Default Re: Datasource on MySql

    I answer myself I found the solution by chance. - The driver name can be
    empty (blank) - the mysql-connector-java-3.{n}-bin.jar has been put in the CF
    directory : cfusionmx/wwwroot/WEB-INF/lib - I have another wwwroot
    under IIs , nothing need to be done there. Pierre.

    plarts 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