let say, my database name = television everytime I try to craate database in CLEAN symfony project (I try version 2.3 or 2.5) for developer mode, it still create database "television" .. when I try to create database for production mode, it's trying to make database with same name "television"
in developer mode it should create database "television_dev", not "television"
I had one cloned project (sylius), and in this project creating databases works fine ... I try to make sure, I have all bundles same (I mean doctrine versions), but it still not working
what am I doing wrong ? what should I config ?
in app/config/config_dev.yml
add:
doctrine:
dbal:
dbname: %database_name%_dev
then you case use this command to create the db
php app/console doctrine:database:create
based on your environment either you will have television
or television_dev
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.