PHP Logo I’m fiddling with the Symfony Demo Application for an article I’m researching and I wanted to use it with MySQL instead of SQLite (which it defaults to). In order to make this change I had to do the following:

1. Change .env to Use MySQL

Open your .env file and find the following line:


And change it to the following:


2. Reset the Database

$ php bin/console doctrine:schema:create
$ php bin/console doctrine:fixtures:load

Like this post? Don't forget to follow us on Twitter and Facebook for updates.