iT邦幫忙

1

【Codeigniter】-DB資料庫設定-菜鳥日記(6)

\application\config->database.php

$db['default'] = array(
	'dsn'	=> '',
	'hostname' => '104.198.177.3',  //如果你是用本地端就填localhost
	'username' => 'harris',
	'password' => 'h70069h',
	'database' => 'hshop',
	'dbdriver' => 'mysqli',
    
    //以下基本上沒用過
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => (ENVIRONMENT !== 'production'),
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8',
	'dbcollat' => 'utf8_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);


尚未有邦友留言

立即登入留言