I've inherited a Symfony project that uses a MySQL DB. I need to create a second database. I've changed the …/htdocs/projectFolder/app/config/parameters.yml to have a new dbName.
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: 8889
database_name: inherited_db_name
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
locale: en
secret: nosecret
database_path: null
Changed to:
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1 #can't use "localhost"
database_port: 8889
database_name: new_db_to_create
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
locale: en
secret: nosecret
database_path: null
I have tried all the tricks I can thing of but the command:
doctrine:database:create just keeps trying to create “inherited_db_name”
If I drop the “inherited_db_name” DB and then run the command again w/ the new parameters.yml the “inherited_db_name” is recreated. I've searched and grep-ed for the “inherited_db_name” but cannot find out where it's coming from. ANY suggestions would be welcomed.