Piwik\Db\Schema\Mysql::createDatabase PHP Method

createDatabase() public method

Create database
public createDatabase ( string $dbName = null )
$dbName string Name of the database to create
    public function createDatabase($dbName = null)
    {
        if (is_null($dbName)) {
            $dbName = $this->getDbName();
        }
        Db::exec("CREATE DATABASE IF NOT EXISTS " . $dbName . " DEFAULT CHARACTER SET utf8");
    }