Mysql Proxy Scripting - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

if the content of the Lua script changes while
automatically used when a new connection is made.
--pid-file=file_name
Command-Line Format
Option-File Format
The name of the file in which to store the process ID.
--user=user_name
Command-Line Format
Option-File Format
Run
mysql-proxy
--version
Command-Line Format
Show the version number.
The most common usage is as a simple proxy service (that is, without additional scripting). For basic
proxy operation, you must specify at least one
MySQL server to connect to by default:
shell>
mysql-proxy --proxy-backend-addresses=MySQL.example.com:3306
The default proxy port is 4040, so you can connect to your MySQL server through the proxy by
specifying the host name and port details:
shell>
mysql --host=localhost --port=4040
If your server requires authentication information, this will be passed through natively without alteration
by mysql-proxy, so you must also specify the required authentication information:
shell>
mysql --host=localhost --port=4040 \
--user=user_name --password=password
You can also connect to a read-only port (which filters out
to the read-only port. By default the host name is the default, and the port is 4042, but you can alter the
host/port information by using the
line option.
For more detailed information on how to use these command-line options, and
general in combination with Lua scripts, see

15.7.4. MySQL Proxy Scripting

You can control how MySQL Proxy manipulates and works with the queries and results that are passed
on to the MySQL server through the use of the embedded Lua scripting language. You can find out
more about the Lua programming language from the
MySQL Proxy Scripting
[1405]
--pid-file=file_name
pid-file=file_name
Permitted Values
Type
[1405]
--user=user_name
user=user_name
Permitted Values
Type
as the specified user.
[1405],
-V
--version
-V
--proxy-read-only-backend-addresses
mysql-proxy
file name
string
proxy-backend-addresses
UPDATE
Section 15.7.5, "Using MySQL
Lua Web
1405
is running, the updated content is
option to specify the
and
queries) by connecting
INSERT
[1403]
mysql-proxy
Proxy".
site.
command-
in

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents