symfony2创建数据库错误

时间:2015-02-17 15:37:52

标签: php symfony

我尝试用Symfony2创建我的数据库。我输入了命令:

php app/console doctrine:create:database

结果是:

SQLSTATE[HY000] [1045] Access denied for user 'development'@'localhost' (using password: NO)

我的app/config/parameters.yml文件是:

{ parameters: {
     database_driver: pdo_mysql,
     database_host: 127.0.0.1,
     database_port: '3306',
     database_name: sf1,
     database_user: root,
     database_password: admin12345,
     mailer_transport: smtp,
     mailer_host: 127.0.0.1,
     mailer_user: null,
     mailer_password: null,
     locale: en,
     secret: 71f83dd18448f2f6300f90c60b4857933f32f2cd,
     database_path: null
      }
      }

0 个答案:

没有答案