i tried to create a new database in Doctrine, with php app/console doctrine:database:create but i got an error : i fixed it thanks to this website
now i’ve got a second error, but i can’t find any solution :
afther this :
pc11:Symfony Paul$ php app/console doctrine:database:create
i’ve got this error :
Could not create database for connection named symfony
SQLSTATE[28000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)
i tried without “symfony” but it did not work :
pc11:~ Paul$ php app/console doctrine:database:create
Could not open input file: app/console
Would you know how to fix this?
Thanks
You’re probably missing database configuration, it tries to connect to MySQL as the user
rootwithout a password and fails to get the permission to create the database.Check your
parameters.inifor settings related to the database connection.