src/Database.php
public static function mysql(string $host, string $dbname, string $user = null, string $password = null, array $options = [])
    {
        $options = array_replace(static::$defaultOptions, $options);
        $instance = new static("mysql:host={$host};dbname=${dbname}", $user, $password, $options);
        $instance->databaseType = 'mysql';

        return $instance;
    }
public static function mysql(string $host, string $dbname, string $user = null, string $password = null, array $options = [])
    {
        $options = array_replace(static::$defaultOptions, $options);
        $instance = new static("mysql:host={$host};dbname=${dbname}", $user, $password, $options);
        $instance->databaseType = 'mysql';

        return $instance;
    }
Factory for a MySQL connection.

@param  string      $host
@param  string      $dbname
@param  string|null $user
@param  string|null $password
@param  array       $options
@return static