* [misc] Add the keyword DEFAULT when installing MySQL or MariaDB.

This commit is contained in:
liugang
2025-11-24 16:17:01 +08:00
parent b71d1eaec9
commit 0e1e398ced
+1 -1
View File
@@ -478,7 +478,7 @@ class dbh
{
case 'mysql':
$result = $this->getServerCharsetAndCollation();
$sql = "CREATE DATABASE `{$this->dbConfig->name}` CHARACTER SET {$result['charset']} COLLATE {$result['collation']}";
$sql = "CREATE DATABASE `{$this->dbConfig->name}` DEFAULT CHARACTER SET {$result['charset']} COLLATE {$result['collation']}";
return $this->rawQuery($sql);
case 'dm':
$createSchema = "CREATE SCHEMA {$this->dbConfig->name} AUTHORIZATION {$this->dbConfig->user}";