mysql settings in settings.dat

3 posts by 3 authors in: Forums > CMS Builder
Last Post: August 18, 2010   (RSS)

By rjbathgate - August 17, 2010 - edited: August 17, 2010

Hey,

The mysql settings in settings.dat.php:

[mysql]
hostname = "xxxxx"
database = "xxxx"
username = "xxxxx"
password = "xxxxxx"
tablePrefix = "cms_"
allowSystemFieldEditing = 1
textOnlyErrors = 0


Is there a way I can have two instances based on server, i.e.:


[mysql]
hostname = "someserver"
database = "xxxx"
username = "xxxxx"
password = "xxxxxx"
tablePrefix = "cms_"
allowSystemFieldEditing = 1
textOnlyErrors = 0


[mysql IF LOCALHOST]
hostname = "localhost"
database = "xxxx"
username = "xxxxx"
password = "xxxxxx"
tablePrefix = "cms_"
allowSystemFieldEditing = 1
textOnlyErrors = 0


I.e. so i can have settings for cmsb when it's on http://localhost and different for when on http://server

Thanks!

Re: [rjbathgate] mysql settings in settings.dat

By Jason - August 18, 2010

Hi,

CMS Builder won't support anything like that in the settings file. If you could tell me more about what you're trying to accomplish I can see if there are other solutions for you.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/