在Conf 文件夾里面的config.php里
<?php return array( 'DB_TYPE' => 'mysql',// 數(shù)據(jù)庫類型 'DB_HOST' => '127.0.0.1',// 數(shù)據(jù)庫服務(wù)器地址 'DB_NAME' => 'thinkphp',// 數(shù)據(jù)庫名稱 'DB_USER' => 'root',// 數(shù)據(jù)庫用戶名 'DB_PWD' => '123',// 數(shù)據(jù)庫密碼 'DB_PREFIX' => 'tp_',// 數(shù)據(jù)表前綴 'DB_CHARSET' => 'utf8',// 網(wǎng)站編碼 'DB_PORT' => '3306',// 數(shù)據(jù)庫端口 'APP_DEBUG' => false,// 開啟調(diào)試模式 ); ?>