Sulu CMS:新安装后的PDOException /数据库连接

时间:2017-08-19 09:23:34

标签: sulu

我跟着this installation guide for Sulu CMS。但是得到这个数据库错误:

PHP Fatal error:  Uncaught exception 'PDOException' with message 
'SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' 
(using password: NO)'

这是parameters.yml文件:

在编辑器安装期间自动生成此文件

parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: null
database_name: sulu-cms
database_user: root
database_password: root
database_version: 5.6
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
secret: ThisTokenIsNotSoSecretChangeIt
sulu_admin.name: Sulu
sulu_admin.email: null
websocket_port: 9876
websocket_url: sulu.lo
phpcr_backend:
type: doctrinedbal
phpcr_workspace: default
phpcr_user: admin
phpcr_pass: admin
phpcr_cache: file_system

1 个答案:

答案 0 :(得分:1)

您确定mysql用户名和密码是否正确?