zoukankan      html  css  js  c++  java
  • 解决Coldfusion连接MySQL数据库的问题

    在连接MySQL时,出现了如下错误:

    Connections to MySQL Community Server are not supported. Please contact MySQL to obtain a MySQL Enterprise or Commercial version.

    解决方案:

    step 1:

    1. download the JDBC driver JDBC Driver for MySQL (Connector/J) here: http://dev.mysql.com/downloads/connector/j/.
    2. in the Platform select box, choose platform independent
    3. next, choose the tar or zip version appropriate for your platform. If you don't know which to pick, choose the zip version.
    4. next, on the screen titled "Begin Your Download - mysql-connector-java-5.1.35.zip", scroll to the bottom and choose the small link "No thanks, just start my download."
    5. finally, once the download completes, extract "mysql-connector-java-5.1.35-bin.jar" and put it in the lib directory of your CF install. For me it is located at: cfusionlib (your platform and coldfusion edition impacts the path for you.
    6. restart ColdFusion and validate your datasource in the ColdFusion Administrator.

    step 2:

    After you copy the JAR file to the /lib directory, you have to restart ColdFusion. Then you will be sure that the changes will take effect.

    In the Administrator, give your new datasource a name. Select MySQL 5 from the list.

    CF_MySQL_DSN_1.png

    Press the Add button to create the datasource. You should then get the following user interface:

    CF_MySQL_DSN_2.png

    This contains the details of my database. Enter the details for yours. Press the Submit button.

  • 相关阅读:
    python打包
    tkinter python(图形开发界面)
    Pyinstaller 打包exe文件 取消dos窗口(黑框框)
    PHP知识点(转载https://www.cnblogs.com/mapsxy/p/9977744.html)
    Java去除字符串中的空格
    开心
    原型链—— javascript
    ajax跨域jsonp —— javascript
    ajax异步 —— javascript
    this —— javascript
  • 原文地址:https://www.cnblogs.com/ilovewindy/p/10097763.html
Copyright © 2011-2022 走看看