作者:雲舒
What is MySQL Proxy?
MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for unlimited uses; common ones include: load balancing; failover; query analysis; query filtering and modification; and many more. 可以看到,MySQL Proxy的主要作用是用來做負載平衡,資料庫讀寫分離的。但是需要注意的是,MySQL Proxy還有個強大的擴充功能就是支援Lua語言——魔獸也是使用了Lua來開發遊戲,據我所知網易也是——可以參見雲風的部落格。這樣一種擴充,就給了我讓他做別的事情的思路——防止注入攻擊。