In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to separate mysql-proxy reading and writing in Mysql. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Start as a configuration file
[root@host-192-168-1-56 mysql-proxy] # ls
Bin include lib libexec licenses mysql-proxy.conf mysql-proxy.log mysql-proxy.pid share
[root@host-192-168-1-56 mysql-proxy] # more mysql-proxy.conf
[mysql-proxy]
Daemon=true
Pid-file=/usr/local/mysql-proxy/mysql-proxy.pid
Log-file=/usr/local/mysql-proxy/mysql-proxy.log
Log-level=debug
LUA_PATH=/usr/local/mysql-proxy/share/doc/mysql-proxy
Proxy-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua
Proxy-address=127.0.0.1:4040
Proxy-read-only-backend-addresses=192.168.1.56:3307192.168.1.6.3307
Proxy-backend-addresses=192.168.1.6:3307
Keepalive=true
Proxy-skip-profiling=true
Admin-address=:4042
Admin-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/admin-sql.lua
Admin-username=admin
Admin-password=admin
Plugins=proxy,admin
[root@host-192-168-1-56 mysql-proxy] # / usr/local/mysql-proxy/bin/mysql-proxy-- defaults-file=/usr/local/mysql-proxy/mysql-proxy.conf
The above content is how to separate mysql-proxy reading and writing in Mysql. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.