访问文件config/database.php
return array(
'connectionString' => 'mysql:host=localhost;dbname=open',
//dbname 数据库名称
'emulatePrepare' => true,
'username' => 'root',//数据库名称
'password' => 'root', //数据库密码
'charset' => 'utf8',
'tablePrefix' => 'open_', //表的前缀
'enableParamLogging' => 'true'
);
'emulatePrepare' => true,
'username' => 'root',//数据库名称
'password' => 'root', //数据库密码
'charset' => 'utf8',
'tablePrefix' => 'open_', //表的前缀
'enableParamLogging' => 'true'
);