Posts Tagged ‘Coldfusion Administration’

Setting up a read-only DSN in Coldfusion

Monday, January 3rd, 2011

In the case that you may be worried about database availability due to heavy stress on reporting queries, you may be considering data replication/streaming, if your specific database provider offers such a service (like Oracle’s Data Replication capabilities), to use for read-only reporting. This method helps ensure the availability of the database when data manipulation needs to occur. However, trying to write to a read-only database will, of course, bomb out.

Fortunately, Coldfusion offers a very easy way to guarantee that the read-only database is only used for SELECT statements. To begin with, both the writable database and the read-only database will need their own datasources set up in the CF Administrator.

(more…)

Setting up a datasource in Coldfusion Administrator

Saturday, March 13th, 2010

Quick post on how to set up a datasource in the Coldfusion Administrator. First you’ll want to open the Coldfusion Administrator. I’m going to assume that you will be doing this locally since if you don’t have a datasource you’ve probably are just at the beginning stages of development. As such let’s open the admin.

Working locally it is likely that you will use the following link http://localhost:8500/CFIDE/administrator/index.cfm for Coldfusion 8 and http://127.0.0.1:8500/CFIDE/administrator/index.cfm for Coldfusion 9. Remember though if you have multiple versions of the Coldfusion server running on your machine the port number may not be 8500. Instead as ports are used Coldfusion will increment the port number by 1 until reaching the next available port. So for example if you had Coldfusion 8 running, and are now running Coldfusion 9 as well your port number is most likely 8501. Nonetheless, if this is the case, my guess is that your not reading this article.

Once into the administrator click on ‘Data Sources’ under the ‘Data & Services’ tab on the left.

Data Sources menu in Coldfusion 9 Administrator

Next create a name for your datasource.  This can be whatever you want it to be.  This is the label that will represent the connection setup between Coldfusion and this particular database.  You will also need to select a driver from the drop-down.  In my case I’m using MySql 5 so I’ll choose ‘MySql 4/5′ from the drop-down.  You will choose whatever is appropriate for your particular database.

(more…)