jj就该了其中三处地方
// ---------------------------- 数据库相关设置---------------------------- //
/**
* 数据库主服务器设置, 支持多组服务器设置, 当设置多组服务器时, 则会根据分布式策略使用某个服务器
* @example
* $_config['db']['1']['dbhost'] = 'localhost'; // 服务器地址
* $_config['db']['1']['dbuser'] = 'a1008150331'; // 用户
* $_config['db']['1']['dbpw'] = '17749714';// 密码
* $_config['db']['1']['dbcharset'] = 'gbk';// 字符集
* $_config['db']['1']['pconnect'] = '0';// 是否持续连接
* $_config['db']['1']['dbname'] = 'x1';// 数据库
* $_config['db']['1']['tablepre'] = 'pre_';// 表名前缀
*
* $_config['db']['2']['dbhost'] = 'localhost';
* ...
*
*/
$_config['db'][1]['dbhost'] = 'localhost';
$_config['db'][1]['dbuser'] = 'a1008150331';
$_config['db'][1]['dbpw'] = '17749714';
$_config['db'][1]['dbcharset'] = 'gbk';
$_config['db'][1]['pconnect'] = 0;
$_config['db'][1]['dbname'] = 'ultrax';
$_config['db'][1]['tablepre'] = 'pre_';
/**
* 数据库从服务器设置( slave, 只读 ), 支持多组服务器设置, 当设置多组服务器时, 系统每次随机使用
* @example
* $_config['db']['slave']['1']['dbhost'] = 'localhost';
* $_config['db']['slave']['1']['dbuser'] = 'a1008150331';
* $_config['db']['slave']['1']['dbpw'] = '17749714';
* $_config['db']['slave']['1']['dbcharset'] = 'gbk';
* $_config['db']['slave']['1']['pconnect'] = '0';
* $_config['db']['slave']['1']['dbname'] = 'x1';
* $_config['db']['slave']['1']['tablepre'] = 'pre_';
*
* $_config['db']['slave']['2']['dbhost'] = 'localhost'; |