The
autogen.sh
build with make:
shell>
./configure
shell>
make
shell>
make install
To create a standalone source distribution, identical to the source distribution available for download,
use this command:
shell>
make distcheck
The preceding command creates the file
current version) within the current directory.
15.7.2.4. Setting Up MySQL Proxy as a Windows Service
The MySQL distribution on Windows includes the
a MySQL Proxy instance to be managed by the Windows service control manager. You can control
the service, including automatically starting and stopping it during boot, reboot and shutdown, without
separately running the MySQL Proxy application.
To set up a MySQL Proxy service, use the
Proxy service command. Specify the MySQL Proxy options on the
the service with a unique name. For example, to configure a new MySQL Proxy instance that will
automatically start when your system boots, redirecting queries to the local MySQL server:
C:\>
sc create "Proxy" DisplayName= "MySQL Proxy" start= "auto" »
binPath= "C:\Program Files\MySQL\mysql-proxy-0.8.2\bin\mysql-proxy-svc.exe »
--proxy-backend-addresses=127.0.0.1:3306"
The preceding command creates a new service called Proxy. You can start and stop the service using
the
net start|stop
is created. To start the service:
C:\>
net start proxy
The MySQL Proxy service is starting.
The MySQL Proxy service was started successfully.
You can specify additional command-line options to the
MySQL Proxy services on the same machine (providing they are configured to listen on different ports
and/or IP addresses.
You can delete a service that you have created:
C:\>
sc delete proxy
For more information on creating services using sc, see
Sc.exe.
15.7.3. MySQL Proxy Command Options
To start MySQL Proxy, you can run it directly from the command line:
shell>
mysql-proxy
For most situations, you specify at least the host name or address and the port number of the backend
MySQL server to which the MySQL Proxy should pass queries.
You can specify options to
and the
--defaults-file
MySQL Proxy Command Options
script creates the standard
mysql-proxy-0.8.2.tar.gz
Note
The space following the equal sign after each property is required; failure to
include it results in an error.
command with the service name. The service is not automatically started after it
mysql-proxy
[1400]
command-line option to specify the file location.
script, which you then use to configure and
configure
mysql-proxy-svc.exe
command to create a new service using the MySQL
sc
command. You can also set up multiple
sc
How to create a Windows service by using
either on the command line, or by using a configuration file
1396
(with the corresponding
command that enables
command line, and identify
sc
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers