Upgrade database to utf8mb4

This commit is contained in:
Daniel Winzen
2017-01-22 14:13:06 +01:00
parent ce40207c47
commit 051155f291
8 changed files with 38 additions and 14 deletions

View File

@ -27,7 +27,7 @@ if($_SERVER['REQUEST_METHOD']==='HEAD'){
}
include('common_config.php');
try{
$db=new PDO('mysql:host=' . DBHOST . ';dbname=' . DBNAME, DBUSER, DBPASS, [PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]);
$db=new PDO('mysql:host=' . DBHOST . ';dbname=' . DBNAME . ';charset=utf8mb4', DBUSER, DBPASS, [PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]);
}catch(PDOException $e){
die($I['nodb']);
}