Error changing database symfony2.7

1

I am creating a project of Symfony 2.7 and I would like to change the document parameters.yml to another host address.

My problem is this: I have worked on a local host with Xampp and, now, I need to link it to an online hosting. Of course, first I changed the name of the database in parameters.yml as indicated in the photo.

But symfony does not look for this value, it takes the previous configuration. When using the doctrine:database:create command, always use the name of the database that existed before in parameter.yml

    
asked by user3547469 08.02.2016 в 11:25
source

2 answers

1

Remove the Doctrine cache

app/console doctrine:cache:clear-metadata 
app/console doctrine:cache:clear-query  
app/console doctrine:cache:clear-result 

and rerun the process, otherwise, your error shows that the DB already exists, check in your database editor if you deleted it

    
answered by 10.03.2016 / 16:11
source
-1

It is simply solved by cleaning the caches. The command to execute for it would be:

php app/console cache:clear    
    
answered by 08.02.2016 в 15:39