title: Setting up a database for Yii 2
body: <p>I need to install an app written in Yii 2 on my local computer. I installed composer and initiated the app with:</p>
  
  <pre><code>php /path/to/yii-application/init
  </code></pre>
  
  <p>Now I need to <em>"create a new database and adjust the <code>components['db']</code> configuration in <code>common/config/main-local.php</code> accordingly."</em></p>
  
  <p>I have no clue how to do that.</p>