title: How to create database in Yii2 format
body: <p>I want create database with yii2. </p>
  
  <pre><code>$servername = "localhost";
  $username = "username";
  $password = "password";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password);
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  }
  
  // Create database
  $sql = "CREATE DATABASE myDB";
  if ($conn-&gt;query($sql) === TRUE) {
      echo "Database created successfully";
  } else {
      echo "Error creating database: " . $conn-&gt;error;
  }
  
  $conn-&gt;close();
  </code></pre>
  
  <p>With this code we can create DB but i want to know whether it is possible in Yii2 manner</p>