failing to connect to MySQL

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

  1. #1

    Default failing to connect to MySQL

    WinXP Pro CFMX 6.1(using built in webserver) MySQL 4.1.13a-nt via TCP/IP

    Okay, I have tried connecting to my DB following the instructions at
    [url]http://www.macromedia.com/go/tn_19170[/url]
    using the mysql-connector-java-3.1.10-bin (should I be using the .jar
    that ends with -g?)

    I have copied the MySQL connector/J to a folder I created at the
    following path
    C:\CFusionMX\db\mysql_connector\mysql-connector-java-3.1.10-bin.jar
    (my understanding was that it didn't matter where it went as long as it
    wasn't in wwwroot)
    When trying to connect to it I inserted the following info:
    Data Source Name = menagerie
    JDBC URL = jdbc:mysql://localhost:3306(tried with and without port)
    /menagerie
    Driver Class = com.mysql.jdbc.Driver
    Driver Name =
    Username = root
    Password = ****************

    Upon Submit I receive the following error:
    Connection verification failed for data source: menagerie
    []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?

    I also tried the built in MySQL connector and I get the following response:
    Connection verification failed for data source: menagerie
    []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?

    I know that is were the server is because the MySQL Admin says that is
    were it is. And there is a db called menagerie.

    Ideas?

    <just wanting a database>
    stillwaiting
    </just wanting a database>
    stillwaiting Guest

  2. Similar Questions and Discussions

    1. #35848 [NoF->Bgs]: Failing when including --with-mysql
      ID: 35848 Updated by: tony2001@php.net Reported By: shawn dot richards at ink dot ltd dot uk -Status: No...
    2. #35848 [Com]: Failing when including --with-mysql
      ID: 35848 Comment by: rafudu at gmail dot com Reported By: shawn dot richards at ink dot ltd dot uk Status: No...
    3. LWP connect failing - bad hostname
      I have two different scripts that use the LWP module that stopped working yesterday, June 6. I ran the following script to verify that the problem...
    4. ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...
    5. MySQL driver failing to connect
      I was using the MySQL driver 3.51 to upload an ACCESS table to a MySQL table on my host. Then I world read the table with ColdFusion MX. Evreything...
  3. #2

    Default Re: failing to connect to MySQL

    use the 3.0.17ga connector...it works for me on CFMX6.1
    HTH
    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

  4. #3

    Default Re: failing to connect to MySQL

    Okay, I got it working looking at the thread titled "MySQL 4.1 & CFMX
    6.1 connector problems"

    It is kind of a long story all of the little things I did but it is now
    working. Thanks HTH

    stillwaiting
    > use the 3.0.17ga connector...it works for me on CFMX6.1
    > HTH
    stillwaiting 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