-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
1. conf.php 활용
2. XE의 dbconfig 활용(1)
3. XE의 dbconfig 활용(1)
초기에는 conf.php에 dbname, dbpass로 변수를 저장해 활용
추가 파일 사용없는 방법 도입
$dbname=$db_info->db_userid;
$dbpass=$db_info->db_password;
XE 1.5에서는 저장 방식이 아래와 같이 변경되었음.
$db_info->master_db = array('db_type' => 'mysql','db_port' =>
'3306','db_hostname' => 'localhost','db_userid' => 'xxxx','db_password' =>
'xxxxxx','db_database' => 'xxxx','db_table_prefix' => 'xe_');
$db_info->slave_db = array(array('db_type' => 'mysql','db_port' =>
'3306','db_hostname' => 'localhost','db_userid' => 'xxxx','db_password' =>
'xxxxxx','db_database' => 'xxxx','db_table_prefix' => 'xe_'));
따라서
$dbname=$db_info->master_db['db_userid'];
$dbpass=$db_info->master_db['db_password'];
위와 같이 변경함
Original issue reported on code.google.com by lispr...@gmail.com on 5 Jul 2012 at 5:21