5

我试图在开发机器上安装代理,但出现以下错误。

/etc/init.d/mysql-proxyd start
Starting mysql-proxy: 2011-02-26 15:51:45: (critical) admin-plugin.c:569: --admin-username needs to be set
2011-02-26 15:51:45: (critical) mainloop.c:267: applying config of plugin admin failed
2011-02-26 15:51:45: (critical) mysql-proxy-cli.c:596: Failure from chassis_mainloop. Shutting down.
[  OK  ]

由于这只是一台测试机,我不想要代理的安全功能。如何避免上述错误?

4

2 回答 2

6

将您的 mysql-proxy 版本升级到 0.8.2 或更高版本,或者通过使用明确指定您不需要管理插件mysql-proxy --plugins=proxy

于 2012-03-03T16:14:06.077 回答
2
[mysql-proxy]
daemon = true
user = mysql
proxy-skip-profiling = true
keepalive = true
max-open-files = 2048
event-threads = 50
pid-file = /var/run/mysql-proxy.pid
log-file = /var/log/mysql-proxy.log
log-level = debug
admin-address=:4401
admin-username=1 
admin-password=1 
admin-lua-script=/usr/local/lib/mysql-proxy/lua/admin.lua
proxy-address = 0.0.0.0:3307
proxy-backend-addresses = 192.168.2.1:3306
proxy-read-only-backend-addresses=192.168.6.2:3306, 192.168.6.1:3306
proxy-lua-script=/usr/lib/mysql-proxy/lua/proxy/balance.lua
于 2013-05-07T05:45:50.610 回答