Monday, September 21, 2009

YII 数据库连接(MySQL)


'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=yiiblog;unix_socket=/opt/lampp/var/mysql/mysql.sock',
'username'=>'root',
'password'=>'password',
'charset'=>'utf8',

No comments:

Post a Comment