I´m working with symfony 2.1.2, FOSuserBundle, SonataAdminBundle, SonataUserBundle and SonataMediaBundle. The problem is that I cannot access to my database and get this error.
This is my parameters.yml
parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: null
database_name: superlinea
database_user: root
database_password: !Admin1234
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
locale: en
secret: f4c89326a7c2d2fb848e84dc8b39ea92
database_path: null
and this is my config.yml [ doctrine section: ]
doctrine:
dbal:
default_connection: default
connections:
default:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
orm:
auto_generate_proxy_classes: %kernel.debug%
# auto_mapping: true
# entity_managers:
# default:
# mappings:
# ApplicationSonataMediaBundle: ~
entity_managers:
default:
mappings:
ApplicationSonataMediaBundle: ~
ApplicationSonataUserBundle: ~
SonataUserBundle: ~
FOSUserBundle: ~
dbal:
types:
json: Sonata\Doctrine\Types\JsonType
I checked to connect to mysql from my terminal using the credentials on parameters.yml and it connects correctly. I purged the cache and still it isn´t taken the specified password.
Any help?
database_password: "!Admin1234"
– dbrumanndoctrine.dbal
via DI-Container and then reading the config and see if it matches the settings from parameters.yml? The error message indicates a missing password, but maybe it's something else? – dbrumann