shell> mysql-proxy
[mysql-proxy] admin-address = host:port
[mysql-proxy] proxy-skip-profiling
[mysql-proxy] proxy-skip-profiling = true
Table 15.4. mysql-proxy Help Options html
Format | Option File | Description |
---|---|---|
--help | Show help options | |
--help-admin | Show admin module options | |
--help-all | Show all help options | |
--help-proxy | Show proxy module options |
Table 15.5. mysql-proxy Admin Options mysql
Format | Option File | Description |
---|---|---|
--admin-address=host:port | admin-address=host:port | The admin module listening host and port |
--admin-lua-script=file_name | admin-lua-script=file_name | Script to execute by the admin module |
--admin-password=password | admin-password=password | Authentication password for admin module |
--admin-username=user_name | admin-username=user_name | Authentication user name for admin module |
--proxy-address=host:port | proxy-address=host:port | The listening proxy server host and port |
Table 15.6. mysql-proxy Proxy Options sql
Format | Option File | Description | Removed |
---|---|---|---|
--no-proxy | no-proxy | Do not start the proxy module | |
--proxy-backend-addresses=host:port | proxy-backend-addresses=host:port | The MySQL server host and port | |
--proxy-fix-bug-25371 | proxy-fix-bug-25371 | Enable the fix for Bug #25371 for older libmysql versions | 0.8.1 |
--proxy-lua-script=file_name | proxy-lua-script=file_name | Filename for Lua script for proxy operations | |
--proxy-pool-no-change-user | proxy-pool-no-change-user | Do not use the protocol CHANGE_USER command to reset the connection when coming from the connection pool | |
--proxy-read-only-backend-addresses=host:port | proxy-read-only-backend-addresses=host:port | The MySQL server host and port (read only) | |
--proxy-skip-profiling | proxy-skip-profiling | Disable query profiling |
Table 15.7. mysql-proxy Applications Options shell
Format | Option File | Description |
---|---|---|
--basedir=dir_name | basedir=dir_name | The base directory prefix for paths in the configuration |
--daemon | daemon | Start in daemon mode |
--defaults-file=file_name | The configuration file to use | |
--event-threads=count | event-threads=count | The number of event-handling threads |
--keepalive | keepalive | Try to restart the proxy if a crash occurs |
--log-backtrace-on-crash | log-backtrace-on-crash | Try to invoke the debugger and generate a backtrace on crash |
--log-file=file_name | log-file=file_name | The file where error messages are logged |
--log-level=level | log-level=level | The logging level |
--log-use-syslog | log-use-syslog | Log errors to syslog |
--lua-cpath=dir_name | lua-cpath=dir_name | Set the LUA_CPATH |
--lua-path=dir_name | lua-path=dir_name | Set the LUA_PATH |
--max-open-files=count | max-open-files=count | The maximum number of open files to support |
--pid-file=file_name | pid-file=file_name | File in which to store the process ID |
--plugin-dir=dir_name | plugin-dir=dir_name | Directory containing plugin files |
--plugins=plugin,... | plugins=plugin,... | List of plugins to load |
--user=user_name | user=user_name | The user to use when running mysql-proxy |
--version | Show version information |
shell> mysql-proxy --proxy-backend-addresses=MySQL.example.com:3306
shell> mysql --host=localhost --port=4040
shell> mysql --host=localhost --port=4040 \ --user=user_name --password=password