Laravel 4 php artisan迁移不起作用

Laravel 4 php artisan迁移不起作用,php,laravel,laravel-4,cartalyst-sentry,Php,Laravel,Laravel 4,Cartalyst Sentry,我正试图遵循一个关于数据库基础知识的教程,我正在设置Sentry 2。我按要求添加了所有例外情况。但是在Sentry 2网站文档页面的第四步。我得到以下错误 {"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/My

我正试图遵循一个关于数据库基础知识的教程,我正在设置Sentry 2。我按要求添加了所有例外情况。但是在Sentry 2网站文档页面的第四步。我得到以下错误

{"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/MySqlConnector.php","line":22}}
我尝试了ssh屏幕中提到的一些事情,但什么都没有:

    robert@Devlopement:/var/www/db_test$ php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing cartalyst/sentry (dev-master 9a8221d)
    Downloading: 100%

Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes
robert@Devlopement:/var/www/db_test$ php artisan key:generate
Application key [Dabb88Fw5080yq53cYgyprredmPbVBpK] set successfully.
robert@Devlopement:/var/www/db_test$ php artisan migrate --package=cartalyst/sentry
{"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/MySqlConnector.php","line":22}}robert@Devlopement:/var/www/db_test$ phptrytisan migrate --package=cartalyst/sen
{"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/MySqlConnector.php","line":22}}robert@Devlopement:/var/www/db_test$ ^C
robert@Devlopement:/var/www/db_test$ 

我在谷歌上搜索了这个问题,似乎这是一个应该在beta版中解决的问题。有什么想法吗?

你的数据库配置坏了。app/config/database.php中是已配置数据库的列表。您的配置中很可能缺少“排序规则”。

您的数据库配置已损坏。app/config/database.php中是已配置数据库的列表。您的配置中很可能缺少“排序规则”。

根据下面的回答,您需要将排序规则添加到配置中。我犯了从L3应用程序复制配置的错误。如果有人这样做,请确保将排序规则添加到迁移的代码中。根据下面的回答,您需要将排序规则添加到配置中。我犯了从L3应用程序复制配置的错误。如果有人这样做,请确保将排序规则添加到迁移的代码中。