The problem is locked!
8
follow
3851
views

wecenter支持连接多个数据库吗?

AI智能回复搜索中,请稍后...

Why is it folded? 0 个回复被折叠
lidanghong 初级会员 User from: 陕西省西安市
2015-01-25 14:21
这个是怎么实现的呢,原理是什么?
Flyour 中级会员 User from: 北京市顺义区
2015-01-25 11:46

zhichi

 
Hanrak 中级会员 User from: 新疆乌鲁木齐市
2015-01-25 00:41
  ['charset'] = 'utf8';
$config['prefix'] = 'AAA_';
$config['driver'] = 'PDO_MYSQL';
$config['master'] = array (
  'charset' => 'utf8',
  'host' => 'localhost',
  'username' => 'AAA_USER',
  'password' => '123456',
  'dbname' => 'AAA',
);
$config['slave'] = array (
  'charset' => 'utf8',
  'host' => '127.0.0.2',
  'username' => 'AAA_USER',
  'password' => '123456',
  'dbname' => 'AAA',
);
是这样的吗 

AWSupport 初级会员 User from: 广东省深圳市
2014-12-08 13:47
支持主从,master 写 slave 读,同步需要自己搞定
zhengqiang 超级管理员 User from: 广东省深圳市
2014-12-08 13:40
支持主从数据库以及多个从数据库。 config['master']
振憾佺場● 注册会员 User from: 山东省
2014-12-08 13:18
32212121212

About the author

user_guide 初级会员

This guy is lazy,Introduction has not been set

Problem dynamics

Release time
2014-12-08 11:23
Update time
2015-01-25 14:21
Focused
8 people pay attention to