1
我想跟随关于数据库的基础知识的教程,我在设置哨兵2的一部分。我添加了所有例外请求。但是在Sentry 2网站的文档页面的第四步。我收到以下错误Laravel 4 php的工匠迁移不工作
{"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/MySqlConnector.php","line":22}}
我尝试了一些东西在我的ssh屏幕,但没有指出:
[email protected]:/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
[email protected]:/var/www/db_test$ php artisan key:generate
Application key [Dabb88Fw5080yq53cYgyprredmPbVBpK] set successfully.
[email protected]:/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}}[email protected]:/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}}[email protected]:/var/www/db_test$ ^C
[email protected]:/var/www/db_test$
我谷歌的问题,现在看来似乎是,是假设的问题在测试版中解决。有任何想法吗?
根据以下答案,您需要将排序规则添加到您的配置中。我犯了从L3应用程序复制我的配置的错误。如果有人正在这样做,请确保将您的迁移代码添加到归类中。 –