1、复制Discuz_X3.2_SC_UTF8/upload/uc_server/lib/dbi.class.php到UCenter_1.6.0_SC_UTF8/lib/dbi.class.php
复制Discuz_X3.2_SC_UTF8/upload/uc_server/lib/dbi.class.php到UCenter_1.6.0_SC_UTF8/lib/dbi.class.php
2、编辑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);
}