pdoexception sqlstate hy000 1044访问被拒绝用户'' localhost'到数据库' laravel'

时间:2015-02-05 18:38:02

标签: php database laravel database-migration

  • code app / config / database.php。我将数据库名称设置为laravel。
'mysql' => array(
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'database'  => 'laravel',
        'username'  => 'forge',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

that image from cmd

1 个答案:

答案 0 :(得分:0)

改为在app/config/local/database.php中修改配置文件。或者在配置文件中指定了数据库laravel_crud。如果找不到,请搜索它。