Ask a Question related to Coldfusion Database Access, Design and Development.
-
RTB1 #1
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
-
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... -
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... -
#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... -
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... -
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. ... -
mxstu #2
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
-
RTB1 #3
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
-
mxstu #4
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
-
RTB1 #5
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
-
mxstu #6
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
-
RTB1 #7
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



Reply With Quote

