Skip to main content
Mary Pieroszkiewicz
Known Participant
January 12, 2011
Question

IIS7 + ColdFusion 9 connection to MySQL database

  • January 12, 2011
  • 2 replies
  • 2378 views

Hi,

I have set ColdFusion 9 and IIS7 now, it  needs to connect MySQL database from ColdFusion 9.

What I still need to make it all work.

Please tell me how do I connect to my MySQL database from ColdFusion

Thank you.

    This topic has been closed for replies.

    2 replies

    Participant
    June 28, 2011

    Maria,

    did you ever figure out how to resolve this issue.  I am having the same issue and cannot fix it except to start a new project and copy all my files.  I then must also update the service.

    roddyda

    Inspiring
    January 12, 2011

    Go the ColdFusion Administrator page. Find the left menu option for

    Datasources. On that page create a new datasource using the form, select

    the appropriate driver on the form (MySQL). This takes you to a larger form

    with more details for host, database name, username, password, etc. See

    this for what each form field means:

    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fe4.html

    After entering the information submit that form to create a new datasource.

    You can then use that datasource name in your ColdFusion code like <cfquery

    datasource="myDatasourceName"...

    Mary Pieroszkiewicz
    Known Participant
    January 31, 2011

    When I configure Flex. The combination of ColdFusion server when setting location, set on a standalone and there is automatically selected Deployed to J2EE server. Why is this happening?

    Mary Pieroszkiewicz
    Known Participant
    February 1, 2011

    Why did you uncheck the "default location" checkbox? The default location for CF on Windows is C:\ColdFusion9.

    In any case, as long as your project validates, you don't have to worry about this.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/


    As I don't uncheck "Use default location for local ColdFusion server" is not conducting the validation configuration...

    So I don't have to worry as I jump from Standalone to Deployed to J2EE server...?