Coldfusion & Mysql - Noob Questions

Joined: 11/28/2008
User offline. Last seen 1 year 48 weeks ago.

Tonight is the first time I've ever touched Coldfusion and its confusing as all getout (at least to me) /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Anyway there is a website that I am working on that was moved from company A to company B. It is MySQL driven and I'm having a time finding any MySQL database connection entries. I have a sneaking suspision that its still using a DB over at company A, but I need to find some kind of connection string to see.

So, in coldfusion, is there any kind of connection string I should be looking for in the code?

Thanks,
Chris

Joined: 11/28/2008
User offline. Last seen 2 years 28 weeks ago.
Cold Fusion sets up all it's

Cold Fusion sets up all it's datasources in the Cold Fusion Administrator Panel. There wouldn't be (or shouldn't be) any connection strings in the code itself; They should all be in your admin panel.

For instance, if you set up a datasource and named it "my_datasource" in the admin panel, you could run a query such as:

CODE
<cfquery name="myquery" datasource="mydatasource">
-- my sql statements
</cfquery>

Coldfusion can be confusing, but it is a VERY powerful tool.

Joined: 11/28/2008
User offline. Last seen 1 year 48 weeks ago.
Ah, ok...From what your

Ah, ok...From what your saying, I'm guessing the code isn't portable like PHP, where i can just open up a PHP file and edit it.

So if I'm working strictly with coldfusion code only (just the website files, no admin panel or anything) then there's really nothing I can do.

Joined: 11/28/2008
User offline. Last seen 2 years 28 weeks ago.
Cold fusion is not portable

Cold fusion is not portable in that manner. Yes, you would need to set up the datasource in the admin panel.

Joined: 11/28/2008
User offline. Last seen 3 years 10 weeks ago.
Yeah, MySpace uses it.

Yeah, MySpace uses it.