SQL default encoding: utf8mb4
This commit is contained in:
@@ -317,7 +317,7 @@ namespace Documents\Install {
|
||||
$password = $this->getParameter("password");
|
||||
$database = $this->getParameter("database");
|
||||
$type = $this->getParameter("type");
|
||||
$encoding = $this->getParameter("encoding") ?? "UTF8";
|
||||
$encoding = $this->getParameter("encoding") ?? "utf8mb4";
|
||||
$success = true;
|
||||
|
||||
$missingInputs = [];
|
||||
@@ -745,7 +745,7 @@ namespace Documents\Install {
|
||||
]],
|
||||
[
|
||||
"title" => "Encoding", "name" => "encoding", "type" => "text", "required" => false,
|
||||
"value" => "UTF8"
|
||||
"value" => "utf8mb4"
|
||||
],
|
||||
]
|
||||
],
|
||||
|
||||
@@ -67,7 +67,7 @@ class MySQL extends SQL {
|
||||
return false;
|
||||
}
|
||||
|
||||
mysqli_set_charset($this->connection, $this->connectionData->getProperty('encoding', 'UTF8'));
|
||||
mysqli_set_charset($this->connection, $this->connectionData->getProperty('encoding', 'utf8mb4'));
|
||||
return true;
|
||||
} catch (\Exception $ex) {
|
||||
$this->lastError = $this->logger->severe("Failed to connect to MySQL: " . mysqli_connect_error());
|
||||
|
||||
Reference in New Issue
Block a user