Ask a Question related to Coldfusion Database Access, Design and Development.
-
centralcan #1
MySQL - CFMX7
Silly question;
Im trying to use the below CF query. to connect to a MySQL DB.
<cfquery NAME="Main1"
DBTYPE="dynamic"
CONNECTSTRING=" Driver={mysql};Server=mysql5.secureconnect.ca;
Database=centr10_bsc;Uid=user;Pwd=pass;">
i get the following CF error:
Attribute validation error for tag query.
The tag does not have an attribute called CONNECTSTRING. The valid
attribute(s) are name, datasource, dbtype, sql, username, password, maxrows,
blockfactor, timeout, dbname, cachedafter, cachedwithin, result, debug.
any ideas?
thanks for your time.
robin,.
centralcan Guest
-
CFMX7 - MySQL 4.0 - INNODB table type
I have tried without success to use the INNODB table type with MySQL 4.0, it locks up my server. If I switch back to the MyISAM table type everything... -
CFMX7-jdbc-MySQL
I'm upgrading from ColdFusion 5 to ColdFusion MX 7 standard edition on a Windows 2000 server. In the process I also switched from odbc to jdbc... -
How do you CFMX7 and mySQL 5?
Any help on this one would be appreciated. :confused; -
CFMX7 with WinXP and Mysql
can i use my notebook, running either WinXP or WinXP Pro with MySQL on CFMX7? how should i config the ODBC? -
What version of MySQL are supported by CFMX7?
Hi All. Does anyone know what versions of MySQL are supported by CFMX7. In the FAQ on the site and in the "Configuration and Administering... -
mxstu #2
Re: MySQL - CFMX7
ConnectString is deprecated (see
[url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
wwhelp.htm?context=ColdFusion_Documentation&file=0 0000213.htm.). Why not just
created a datasource?
mxstu Guest
-
centralcan #3
Re: MySQL - CFMX7
its a remote database not located on the server where the site is stored.
ill take a peek through the url you provided to see if that information will fix the issue. thanks for your remarks.
centralcan Guest
-
mxstu #4
Re: MySQL - CFMX7
I'm not sure which version of mySQL you are using. I've never tried this, so
it may not even be possible. However, I know you can use MySQL Connector/J
with MX6.1/7 to connect to a version 4.1.x database. When you set the
properties for a datasource in the CF Administrator, you specify a "JDBC URL".
In theory a JDBC URL does allow you to connect to a remote database. I don't
know if other settings in CF would prevent this from working, but it might be
worth a shot.
Here is an example of my settings in MX 6.1
CF DataSource Name: mySqlDSN
JDBC URL: jdbc:mysql://127.0.0.1:3306/myTestDB
Driver Class: com.mysql.jdbc.Driver
Driver Name: MySQL Connector/J
Username: myUserName
Password: ************
In theory, you would change the JDBC URL to point to the remote server address
and port number. Of course even if this does work, you should definitely look
into the security issues of using this method.
mxstu Guest
-
Walt1986 #5
Re: MySQL - CFMX7
I am trying to connect a datasource using MySQL 4.0 to CF MX 7.0 and are
getting the following error.
Connection verification failed for data source: chenegaportal
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?
Perhaps I am entering the incorrect driver info or doning something wrong in
the process. Does anybody know have step-by-step directions to guide me.
Thank.....!!
Walt1986 Guest
-
mxstu #6
Re: MySQL - CFMX7
See technote
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url]
Some people have had issues with the mySql connector-J 3.1.10 jar, so you may
want to use another version. You can find them on the FTP mirror sites. Just
look for 3.0.17ga or 3.1.17 versions of the jar. Here are two ftp mirror sites
I got
from the mysql.com list:
[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



Reply With Quote

