mySQL ODBC Connection Failure with CF MX7

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

  1. #1

    Default mySQL ODBC Connection Failure with CF MX7

    Installed mySQL 4.1 from XAMPP packages that comes with PHP, FileZilla, and
    Mercury. Everything works very well with PHP and BlueDragon Cold Fusion;
    however, I also want to use Macromedia Cold Fusion MX. When I attempted to add
    a datasource from the CF Administrator page using mySQL (3.x) as the chosen
    driver, I get the following error. I tried "localhost" and "rtb3" as names of
    the computer; it didn't work.

    Connection verification failed for data source: rtb
    java.sql.SQLException: Server configuration denies access to data source
    The root cause was that: java.sql.SQLException: Server configuration denies
    access to data source

    Any solutions. Thanks in advance,
    R. Baker
    RTB Design:confused;:Q

    RTB1 Guest

  2. Similar Questions and Discussions

    1. Administer Connection failure
      I'm the Contribute admin and am trying to add a user to a website via "my connections/Administer" (using Contribute CS3), I'm also using CPS. When...
    2. Flash SSL connection failure IE
      I am working on a very innovative e-commerce site with an all Flash interface. We have uncovered an unusual situation where Flash works in Firefox...
    3. #34852 [Com]: [PATCH] Failure in odbc_exec() using oracle-supplied odbc driver
      ID: 34852 Comment by: rpowell at opriver dot com Reported By: tim dot tassonis at trivadis dot com Status: No...
    4. DW remote connection to mySQL server failure
      Am trying to learn Interakt's Impakt . Could not go very far in this learning attempt as I cannot get DW to establish remote connection to the...
    5. CFHTTP - Connection Failure
      I'm having a very frustrating issue that I need help with. I am using CFHTTP to to a GET of an internal page so that I can parse it for some info. ...
  3. #2

    Default Re: mySQL ODBC Connection Failure with CF MX7

    I know this doesn't answer your question, but why use an ODBC connection with mySQL instead of JDBC?
    mxstu Guest

  4. #3

    Default Re: mySQL ODBC Connection Failure with CF MX7

    Thanks for the questions. For JDBC, would you know what connection string that I should use for mySQL 4.1?
    RTB1 Guest

  5. #4

    Default Re: mySQL ODBC Connection Failure with CF MX7

    You don't use a connection string for JDBC. You use a jdbc url. Since you're
    using mySQL 4.1, see the instructions in this tech note:
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url]

    Important - Athough the current version of the jdbc connector is 3.1.11 there
    have been some compatability problems with MX6 and MX7. So I would recommend
    using a different version of the jar. I have used versions 3.0.17ga, 3.1.9 and
    3.1.17 successfully.

    Mirror sites with other versions of jdbc connector jar
    [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

  6. #5

    Default Re: mySQL ODBC Connection Failure with CF MX7

    Thanks again... tried the following.
    1. In mysql, ran mysql>grant all privileges on *.* rtb@localhost identified
    by 'pw' with grant option;
    2. Next, extracted mysql-connector-java-3.0.17-ga-bin.jar from the downloaded
    zip file and placed it WEB-INF/lib folder.
    3. Finally, used the following in the CF Admin.
    CF Data Source Name: tester
    JDBC URL: jdbc:mysql://localhost:3306/test
    Driver Class: com.mysql.jdbc.Driver
    Driver Name: mysql-connector-java-3.0.17-ga-bin.jar
    User Name: rtb (as established in mySQL)
    Password: 1234

    The following error displayed:

    Connection verification failed for data source: tester
    java.sql.SQLException: Invalid authorization specification message from
    server: "Access denied for user 'rtb'@'localhost' (using password: NO)"
    The root cause was that: java.sql.SQLException: Invalid authorization
    specification message from server: "Access denied for user 'rtb'@'localhost'
    (using password: NO)"

    It appears to me that the URL is incomplete; however, would need further
    clarification. - rtb

    RTB1 Guest

  7. #6

    Default Re: mySQL ODBC Connection Failure with CF MX7

    1) Make sure you restarted the CF server after adding the my sql jar to the
    WEB-INF/lib folder

    2) It may not make a difference, but in the mySQL docs there are single quotes
    around the user and host in the grant statement, an a "to" command after the
    *.*.
    mysql> grant all privileges on *.* to 'rtb'@'localhost' identified by 'pw'
    with grant option

    [url]http://dev.mysql.com/doc/refman/5.0/en/adding-users.html[/url]

    3) The DSN password in CF Admin is "1234" but in the grant statement it is
    "pw". Assuming that is not a typo, just make sure the passwords are the same.



    mxstu Guest

  8. #7

    Default Re: mySQL ODBC Connection Failure with CF MX7

    Your statement #3 revealed the problem: I had a mismatch on the passwords for the grant all privileges statement in mySQL. Should had '1234' and not 'pw'. It now works! Thanks for the help!
    RTB1 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