File with connection settings

 

  Default structure for MySQL

  Default file with connection settings looks like in the nex example:
Example (cf_mysql_database):
db_host#user#password#database#table_prefix#logging_option
  Here db_host, user, password, database are database host, user's login, user's password and database name respectively. table_prefix is a prefix for all databases, it's default value is umx_ but you can change it while installation of ultimix. And logging_option can be 0 or 1, if 1 then all queries will be saved to database (table umx_actions).

  Multyline structure

  Sometimes setting more than one connection strings may be usefull. For this purposes you can write config in this manner (each string must be separated with "\r\n" or "\n" end of line symbols):
Example:
db_host1#user1#password1#database1#table_prefix1#logging_option1
db_host2#user2#password2#database2#table_prefix2#logging_option2
.
.
.
db_hostn#usern#passwordn#databasen#table_prefixn#logging_optionn
Note: If connection failed then an exception of type Exception will be thrown.
Note: If connection was set with config row db_hostk#userk#passwordk#databasek#table_prefixk#logging_optionk at position 'k' then this line will be put at the first position in the config (it was done because of the speed optimisation reasons).

2009 © ultimix