I'm following this tutorial:
and I get this error:
Could not create database
symfony
for connection named default An exception occurred in driver: SQLSTATE [HY000] [1045] Access denied for user 'root' @ 'localhost' (using password: YES)
The .env file is set up like this:
DATABASE_URL="mysql: // root: [email protected]: 3306 / symfony? charset = utf8mb4 & serverVersion = 5.7"
To access mysql (I have it thanks to mamp), I gave the root a password; Well, my questions are:
- 1) Should I put it in the above connection chain where I put XXXXXX? Should I put it in double quotes?
-
2) Can I omit the creation of the database using the command:
./ bin / console doctrine: database: create
and create it myself using the phpMysqlAdmin or another BD manager? Would this second form of creation affect the correct functioning of the symfony application?
Thanks in advance.
Greetings, Abelardo.