Mei笑D小妞 发表于 2018-10-3 12:51:39

MySQL-Proxy之读写分离

Usage:  
mysql-proxy - MySQL Proxy
  

  
proxy-module
  
-P, --proxy-address=                         listening address:port of the proxy-server (default: :4040)
  
-r, --proxy-read-only-backend-addresses=   address:port of the remote slave-server (default: not set)
  
-b, --proxy-backend-addresses=               address:port of the remote backend-servers (default: 127.0.0.1:3306)
  
--proxy-skip-profiling                                  disables profiling of queries (default: enabled)
  
--proxy-fix-bug-25371                                 fix bug #25371 (mysqld > 5.1.12) for older libmysql versions
  
-s, --proxy-lua-script=                           filename of the lua script (default: not set)
  
--no-proxy                                              don't start the proxy-module (default: enabled)
  
--proxy-pool-no-change-user                           don't use CHANGE_USER to reset the connection coming from the pool (default: enabled)
  
--proxy-connect-timeout                                 connect timeout in seconds (default: 2.0 seconds)
  
--proxy-read-timeout                                    read timeout in seconds (default: 8 hours)
  
--proxy-write-timeout                                 write timeout in seconds (default: 8 hours)


页: [1]
查看完整版本: MySQL-Proxy之读写分离