UCenter info: MySQL Query Error SQL:SELECT value FROM [Table]vars WHERE name='noteexists1' Error:SEL
discuz x 3.5最新版搬迁到另外服务器导致无登陆权限报错如下
UCenter info: MySQL Query Error
SQL:SELECT value FROM [Table]vars WHERE name='noteexists1'
Error:SELECT command denied to user 'bbs_zhenxi_ltd'@'localhost' for table 'pre_ucenter_vars'
Errno:1142
解决方案如下:
<?php
define('UC_CONNECT', 'mysql');
define('UC_STANDALONE', 1);
define('UC_DBHOST', 'localhost');
define('UC_DBUSER', '这里写你服务器的实际用户名');
define('UC_DBPW', '这里写你服务器的实际密码');
define('UC_DBNAME', '这里写你服务器的实际数据库表名');
define('UC_DBCHARSET', 'utf8mb4');
define('UC_DBTABLEPRE', '`这里写你服务器的实际数据库表名`.pre_ucenter_');
define('UC_DBCONNECT', 0);
define('UC_AVTURL', '');
define('UC_AVTPATH', '');
define('UC_CHARSET', 'utf-8');
define('UC_KEY', 'n4D653Hfw4p1p0ua46F38bJ0Oap1b0k3U7tfc3z96c39W5yfRbbfr7kfjeicd211');
define('UC_API', 'http://bbs.zhenxi.ltd/uc_server');
define('UC_APPID', '1');
define('UC_IP', '');
define('UC_PPP', 20);