Chinaunix首页 | 论坛 | 博客
  • 博客访问: 636331
  • 博文数量: 137
  • 博客积分: 6189
  • 博客等级: 准将
  • 技术积分: 1559
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-15 16:39
文章分类

全部博文(137)

文章存档

2010年(3)

2009年(1)

2008年(49)

2007年(56)

2006年(28)

分类: LINUX

2008-06-18 18:12:37

之前一直折腾mysql-proxy的ERROR 1105的问题。

提交了BUG后等待了半个月终于有解决方法了。

Adding 'c.default_db ~= ""' for default DB check seems to solve the problem:

-- if client and server db don't match, adjust the server-side
--
-- skip it if we send a INIT_DB anyway
if cmd.type ~= proxy.COM_INIT_DB and c.default_db and c.default_db ~= "" and
c.default_db ~= s.default_db then
print(" server default db: '" .. s.default_db .. "'")
print(" client default db: '" .. c.default_db .. "'")
print(" syncronizing")
proxy.queries:prepend(2, string.char(proxy.COM_INIT_DB) .. c.default_db)


end



阅读(2017) | 评论(3) | 转发(0) |
给主人留下些什么吧!~~

枫影谁用了2008-06-18 18:51:36

http://www.hiadmin.com/index.php/2008/06/18/mysql-proxy-cant-change-db-to-on-slave%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/#comment-422 哥们帮忙记录得更详细。

枫影谁用了2008-06-18 18:51:36

http://www.hiadmin.com/index.php/2008/06/18/mysql-proxy-cant-change-db-to-on-slave%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/#comment-422 哥们帮忙记录得更详细。

枫影谁用了2008-06-18 18:51:36

http://www.hiadmin.com/index.php/2008/06/18/mysql-proxy-cant-change-db-to-on-slave%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/#comment-422 哥们帮忙记录得更详细。