title: Create new database and tables on the fly
body: <p>I was reading the post "Create new database and tables on the fly"
  I tried to implement an updated version of the create schema function: </p>
  
  <pre><code>public static function createSchema($schemaName)
  {
      $dbName = "db_{$schemaName}";
  
      return DB::getSchemaBuilder()
          -&gt;getConnection()
          -&gt;statement("CREATE DATABASE :schema", ['schema' =&gt; $dbName ]);
  }
  </code></pre>
  
  <p>but I get the following error:</p>
  
  <blockquote>
    <p>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1 (SQL: CREATE DATABASE :schema)</p>
  </blockquote>
  
  <p>PDO does not allowed to bind params on a create database query. So i'm not sure how to create DB's on the fly as safely as possible. Can anyone show me the way, before i have to introduce a security flaw in our site.</p>