Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

create datasource on fly

New Here ,
Jul 07, 2008 Jul 07, 2008
Hi

I have a coldfusion application which I am using mySQL 5 database with. When I have a new client that wants to use the applicaton is there a way for me to create a new database / datasource on the fly using coldfusion and then copy files to a new folder on the web server.

like an auto install routine?

I have seen this done with php installers.
TOPICS
Database access
443
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 07, 2008 Jul 07, 2008
You can add a data source programmatically using the administrator API.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basiconfig_37.html
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2008 Jul 07, 2008
LATEST
Once you've done what Bob told you, you can run create table queries to build the database.

From a maintenance perspective, it would be simpler to have one db with a client table in their somewhere.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources