CFMX to MySQL 4.1 connection

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

  1. #1

    Default CFMX to MySQL 4.1 connection

    :confused;
    Has anyone an idea on why CF administrator would fail when attemping to
    connect to a new Data Source?
    CFMX and MySQL installed on the same test machine.
    CFMX templates running fine, connecting to other datasources like MS Access
    and Oracle.
    Brand new install of MySQL from the MySQL Site. The CFMX Admin gives me

    --------------------------------------------------------------------------------
    ---------------------------------
    Connection verification failed for data source: MySQL
    []java.sql.SQLException: Communication failure during handshake. Is there a
    server running on 'myIPnumber:portnumber(3306)'?
    The root cause was that: java.sql.SQLException: Communication failure during
    handshake. Is there a server running on MyIP:3306?

    --------------------------------------------------------------------------------
    ---------------------------------
    Tried the Macromedia tech note
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19170[/url]
    but this made no difference in the error message.

    I've ensured that the MySQL server is up and running on the port 3306, and use
    an IP instead of localhost.
    I can open the DB from a command line and show the current db's; create users;
    change permissions; etc.
    A quick check in the Windows Services dialog shows MySQL up and running as a
    service (I'm on win 2000)
    But I can not get past the error shown above.
    Any ideas? I'll try anything at this point. (Normally its quite simple to
    connect to DB's from within CFMX Admin)
    thanks in advance for any reply post,

    Lingodude Guest

  2. Similar Questions and Discussions

    1. #40207 [NEW]: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL ser
      From: arif at peshawaronline dot com Operating system: PHP version: 4.4.4 PHP Bug Type: Compile Warning Bug description: ...
    2. mySQL connection with CFMX
      i'm using CFMX , mysql 5.0 , mysql-connector-java-3.1.13 how do i set the connection... 1) do i need to add the driver into the ODBC ? 2)...
    3. CFMX 7.0.1 COnnection to SQL 2000
      I am running MSDE and CFMX DE on my W2K laptop. I cannot connect to MSDE so I am reluctant to upgrade our production server to CFMX unless I can...
    4. CFMX + mySQL
      Hello there, I have just installed CFMX 7 developer edition + mySQL 4.1.12a on my local winXP pro machine. I also downloaded the JDBC for mySQL....
    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: CFMX to MySQL 4.1 connection

    Tried Tech Note:
    java.sql.SQLException: Unable to instantiate logger class
    'com.mysql.jdbc.log.Log4JLogger', exception in constructor?
    The root cause was that: java.sql.SQLException: Unable to instantiate logger
    class 'com.mysql.jdbc.log.Log4JLogger', exception in constructor?
    ---------------------------
    * Have placed
    "C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.1.10-bin.jar," in the
    Class path after coping the jar file to the lib directory.
    * Restarted the CFMX server after these changes.
    Not sure what to do next.
    Have installed latest Driver from MySQL and used Macromedia Tech notes to
    update the Admin fields.
    Can any one point me in the right direction ??



    Lingodude Guest

  4. #3

    Default Re: CFMX to MySQL 4.1 connection

    Hi Lingdude,

    did you eventually find the answer.
    I can't get my CF7.0 connected to MySQL5.0 although I get another
    error-message.
    If you found the answer to your question than please post it here!

    Mario

    feiloiram Guest

  5. #4

    Default Re: CFMX to MySQL 4.1 connection

    Originally posted by: feiloiram
    I can't get my CF7.0 connected to MySQL5.0 although I get another
    error-message.
    If you found the answer to your question than please post it here!
    Mario

    Mario,

    Glad to see you solved your mySQL5.0 problem on your other thread.

    I was also receiving the "Unable to instantiate logger class" error but
    solved the problem by using a different version of the mySql jar. I used
    mysql-connector-java-3.0.17-ga-bin.jar .... instead of ...
    mysql-connector-java-3.1.10-bin.jar




    mxstu Guest

  6. #5

    Default Re: CFMX to MySQL 4.1 connection

    [BUMP]

    Having issues with newer MySQL jdbc's. Anyone come up with a solution for the Logger Class?

    Unable to instantiate logger class 'com.mysql.jdbc.log.Log4JLogger'
    esch Guest

  7. #6

    Default Re: CFMX to MySQL 4.1 connection

    What version of the jar are you using?
    mxstu Guest

  8. #7

    Default Re: CFMX to MySQL 4.1 connection

    Driver: 3.1.10-bin

    I believe all of the 3.1 drivers have this issue. I therefore swiched up to
    the 3.2.0-alpha driver. It is currently in development and haven't had any
    issues. Believe I will wait for ga version of 3.2 before production move.

    esch Guest

  9. #8

    Default Re: CFMX to MySQL 4.1 connection

    Well, it's a bit older, but I used mysql-connector-java-3.0.17-ga-bin.jar with no problems.
    mxstu Guest

  10. #9

    Default Re: CFMX to MySQL 4.1 connection

    Thanks for this thread! I had just upgraded to mysql 4.1 and hit a wall with CF
    MX not connecting. I was trying to use the mysql-connector-java-3.1.10-bin.jar
    with the same issues above. The older mysql-connector-java-3.0.17-ga-bin.jar
    ended up working (Thankfully! I have a project due in 2 weeks ;) )

    Cheers!

    J-Quest Guest

  11. #10

    Default Re: CFMX to MySQL 4.1 connection

    Due to the UTF-8 issues, i also had some problems with it and solved via adding
    useUnicode=true&characterEncoding=UTF8
    to the connection string. Hope that helps some ppl.

    Benny

    Evil-Devil82 Guest

  12. #11

    Default Re: CFMX to MySQL 4.1 connection

    Originally posted by: esch
    Driver: 3.1.10-bin

    I believe all of the 3.1 drivers have this issue. I therefore swiched up to
    the 3.2.0-alpha driver. It is currently in development and haven't had any
    issues. Believe I will wait for ga version of 3.2 before production move.

    esch,

    Just an update. I was able to use mySQL 4.1 |
    mysql-connector-java-3.1.7-bin.jar | MX7 and it seems to work fine so far.




    mxstu Guest

  13. #12

    Default Re: CFMX to MySQL 4.1 connection

    Where did you find mysql-connector-java-3.1.7-bin.jar? I can only find 3.1.10 on the mysql.com site.
    3.1.10 doesn't seem to work with CFMX7.
    drmaves Guest

  14. #13

    Default Re: CFMX to MySQL 4.1 connection

    Just look through the ftp directory of one of the mirror sites. They have most
    versions. For example:

    [url]ftp://ftp.orst.edu/pub/mysql/Downloads/Connector-J/[/url]
    [url]ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/Connector-J/[/url]

    mxstu Guest

  15. #14

    Default Re: CFMX to MySQL 4.1 connection

    Dont know why, but this works. Set your root users password to NONE and then connect through CF admin using root and empty pass.
    smika Guest

  16. #15

    Default Re: CFMX to MySQL 4.1 connection

    Dont know why, but this works. Set your root users password to NONE and then connect through CF admin using root and empty pass.
    smika 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