Enable the MySQL enhanced extension under UCenter_1.6.0_sc_utf8, that is, the mysqli extension
1. Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi. class.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php

Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi.c LASS.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php
2. Edit ucenter_1.6.0_sc_utf8/model/base.php
function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new ucserver_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw, uc_dbname, uc_dbcharset, UC_DBConnect, UC_DBTablePre);
}
3. Copy the class of discuz_x3.2_sc_utf8/upload/uc_server/api/dbbak.php dbstuffi to ucenter_1.6.0_sc_utf8/api/dbbak.php
4. Edit ucenter_1.6.0_sc_utf8/api/dbbak.php
5. Enable the mysqli extension in uc_client, copy discuz_x3.2_sc_utf8/upload/u c_client/lib/dbi.class.php to uc_client/lib/dbi.class.php
6. Edit uc_client/client.php,
if(empty($UC_CONTROLS)[$model])) {
//INCLUDE_ONCE UC_ROOT../lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
INCLUDE_ONCE UC_ROOT../lib/dbi.class.php;
} else {
INCLUDE_ONCE UC_ROOT../lib/db.class.php;
}
INCLUDE_ONCE UC_ROOT../model/uc_base.php;
include_once uc_root.”./control/$model.php”;
eval(“\$UC_CONTROLS[‘$model’]= new {$model}control();”);
}
7. Edit /uc_client/model/uc_base.php
function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new uclient_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw,, uc_dbcharset, uc_dbconnect, uc_dbtablepre);
}




