尝试在 Laravel 4 中运行迁移后,我收到以下错误:
[PDOException]
SQLSTATE[HY000]: General error: 1273 Unknown collation: ''
这是我的数据库连接配置;
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
'database' => 'database',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'prefix' => '',
),
有什么建议么?