mysql-proxy ERROR 1105 (07000): can't change DB的问题

2189阅读 3评论2008-06-18 枫影谁用了
分类:LINUX

之前一直折腾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



上一篇:bash 比较运算符
下一篇:BASH PS1-PS4 提示符设置

文章评论