Showing
3 changed files
with
6 additions
and
6 deletions
1 | <?php | 1 | <?php |
2 | class Util_Cache_Adapter_Memcached implements Util_Cache_Adapter_Interface { | 2 | class Util_Cache_Adapter_Memcached implements Util_Cache_Adapter_Interface { |
3 | - private $_domain = 'www.pre.yoho.cn'; //域名 | 3 | + private $_domain = 'www.dev.yoho.cn'; //域名 |
4 | private $_class = 'default'; //分类 | 4 | private $_class = 'default'; //分类 |
5 | private $_prefix = ''; //前缀 | 5 | private $_prefix = ''; //前缀 |
6 | 6 |
@@ -16,7 +16,7 @@ class Util_Dao_Dsn | @@ -16,7 +16,7 @@ class Util_Dao_Dsn | ||
16 | public static function getDbServer($dbname, $readtag = true, $dbType = 'Mysql',$charset='UTF8MB4') | 16 | public static function getDbServer($dbname, $readtag = true, $dbType = 'Mysql',$charset='UTF8MB4') |
17 | { | 17 | { |
18 | $options = array( | 18 | $options = array( |
19 | - 'dbname' => 'pre_'.$dbname, | 19 | + 'dbname' => $dbname, |
20 | 'readtag' => $readtag | 20 | 'readtag' => $readtag |
21 | ); | 21 | ); |
22 | $server = Util_Server::factory('Db', $dbType, $options)->loadBalanceServer(); | 22 | $server = Util_Server::factory('Db', $dbType, $options)->loadBalanceServer(); |
1 | [mysql] | 1 | [mysql] |
2 | -pre_yohood.username = yohodb | ||
3 | -pre_yohood.password = yohonj_9646_mysql | ||
4 | -pre_yohood.writers = 10.170.183.158:5510 | ||
5 | -pre_yohood.readers = 10.170.183.158:5510 | 2 | +yohood.username = yohodb |
3 | +yohood.password = yohonj_9646_mysql | ||
4 | +yohood.writers = 127.0.0.1:5510 | ||
5 | +yohood.readers = 127.0.0.1:5510 |
-
Please register or login to post a comment