mysql-proxy使用

mysql-proxy时的注意事项

http://hi.baidu.com/thinkinginlamp/blog/item/8d62c895cecd2f43d1135e83.html

 

MySQL Proxy 安装与读写分离体验

http://blog.chinaunix.net/u/29134/showart_482210.html

 

启动读写分离

mysql-proxy --proxy-read-only-backend-addresses=10.20.236.57:3306 --proxy-backend-addresses=localhost:3306  --proxy-lua-script=D:/dev/mysql-proxy-0.7.2-win32/share/mysql-proxy/rw-splitting.lua

 

查询测试

mysql -uroot -p123456 -P4040 -h127.0.0.1 -Drepl

 

注意事项:

测试读写分离时要启动多个客户端,才有可能读写分离。

 

 

你可能感兴趣的:(html,.net,mysql,Blog,lua)