在我读过的所有相关帖子,但我不能摆脱我的问题:PDOException在Laravel 4.1 MySQL驱动程序运行时迁移:安装统一WAMP服务器
环境:
- 笔记本电脑Win8.1运行UNISERVER地方发展 -MySql端口3306 -Laravel 4.1.27
在一个新的laravel项目我运行
php artisan migrate:install
和我得到PDOException错误。
我database.php中的配置文件如下:
'default' => 'mysql',
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => array(
'sqlite' => array(
'driver' => 'sqlite',
'database' => __DIR__.'/../database/production.sqlite',
'prefix' => '',
),
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'afz',
'username' => 'afz',
'password' => 'xxxxxxxx',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
'pgsql' => array(
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
),
'sqlsrv' => array(
'driver' => 'sqlsrv',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => '',
'prefix' => '',
),
),
数据的基础上排序规则是相同的配置。
PDO似乎安装在phpinfo中。
不能找出可能出现的问题....
控制器内的数据库访问的作品,但我得到的错误,当我尝试使用迁移...
运行确定有另一个应用同样的问题,所以我想,它必须与PHP设置,但什么?
信息:
命令输出的屏幕截图
LINK:PHOTO
有什么错误讯息?请向我们展示PDOException +调试跟踪的输出。 –
添加了图片 – e4rthdog