mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Change MySQL connection charset
This commit is contained in:
parent
45f9993776
commit
c7be5da5c9
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ function updatePageViews(DatabaseHandle $conn) : void {
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
$conn = new DatabaseHandle("mysql:host=$db_host;dbname=$db_schema;charset=utf8", $db_user, $db_pass);
|
$conn = new DatabaseHandle("mysql:host=$db_host;dbname=$db_schema;charset=utf8mb4", $db_user, $db_pass);
|
||||||
|
|
||||||
// Setup site info
|
// Setup site info
|
||||||
$site_info = getSiteInfo();
|
$site_info = getSiteInfo();
|
||||||
|
|
Loading…
Add table
Reference in a new issue