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

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. How do you CFMX7 and mySQL 5?
      Any help on this one would be appreciated. :confused;
    4. 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?
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

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