start to implement database part
This commit is contained in:
20
local/config/config_db.mysql.php
Normal file
20
local/config/config_db.mysql.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for mysql
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_TYPE','mysql');
|
||||
|
||||
|
||||
// database login
|
||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
//database DSN
|
||||
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
|
||||
|
||||
|
||||
?>
|
||||
19
local/config/config_db.pgsql.php
Normal file
19
local/config/config_db.pgsql.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for postgresql
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_TYPE','pgsql');
|
||||
|
||||
// database login
|
||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
|
||||
define('THELIA_DB_DSN','pgsql:dbname=__DB_NAME__;host:__DB_HOST__');
|
||||
|
||||
|
||||
?>
|
||||
19
local/config/config_db.sqlite.php
Normal file
19
local/config/config_db.sqlite.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for sqlite
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_TYPE','sqlite');
|
||||
|
||||
// database login
|
||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
|
||||
define('THELIA_DB_DSN','sqlite:__DB_FILE__');
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user