Commit 54649a94 authored by unknown's avatar unknown

Changed name mysql_multi_mysqld to mysqld_multi.


Docs/manual.texi:
  Changed name mysql_multi_mysqld to mysqld_multi.
  This is because safe_mysqld will be converted to mysqld_safe
  in the future and the new name is shorter than the old one.
scripts/Makefile.am:
  Added mysqld_multi
scripts/mysqld_multi.sh:
  Changed name from mysql_multi_mysqld to mysqld_multi
parent d4fb3eec
...@@ -604,7 +604,7 @@ MySQL Utilites ...@@ -604,7 +604,7 @@ MySQL Utilites
* Programs:: What do the executables do? * Programs:: What do the executables do?
* safe_mysqld:: * safe_mysqld::
* mysql_multi_mysqld:: Program for managing multiple @strong{MySQL} servers * mysqld_multi:: Program for managing multiple @strong{MySQL} servers
* mysql:: The command line tool * mysql:: The command line tool
* mysqladmin:: Administering a @strong{MySQL} server * mysqladmin:: Administering a @strong{MySQL} server
* mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables * mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables
...@@ -28096,7 +28096,7 @@ How big a @code{VARCHAR} column can be ...@@ -28096,7 +28096,7 @@ How big a @code{VARCHAR} column can be
@menu @menu
* Programs:: What do the executables do? * Programs:: What do the executables do?
* safe_mysqld:: * safe_mysqld::
* mysql_multi_mysqld:: Program for managing multiple @strong{MySQL} servers * mysqld_multi:: Program for managing multiple @strong{MySQL} servers
* mysql:: The command line tool * mysql:: The command line tool
* mysqladmin:: Administering a @strong{MySQL} server * mysqladmin:: Administering a @strong{MySQL} server
* mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables * mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables
...@@ -28234,7 +28234,7 @@ shell> replace a b b a -- file1 file2 ... ...@@ -28234,7 +28234,7 @@ shell> replace a b b a -- file1 file2 ...
@cindex tools, safe_mysqld @cindex tools, safe_mysqld
@cindex scripts @cindex scripts
@cindex @code{safe_mysqld} @cindex @code{safe_mysqld}
@node safe_mysqld, mysql_multi_mysqld, Programs, Tools @node safe_mysqld, mysqld_multi, Programs, Tools
@section safe_mysqld, the wrapper around mysqld @section safe_mysqld, the wrapper around mysqld
@code{safe_mysqld} is the recommended way to start a @code{mysqld} @code{safe_mysqld} is the recommended way to start a @code{mysqld}
...@@ -28324,13 +28324,13 @@ upgrade @strong{MySQL} in the future, your modified version of ...@@ -28324,13 +28324,13 @@ upgrade @strong{MySQL} in the future, your modified version of
@code{safe_mysqld} will be overwritten, so you should make a copy of your @code{safe_mysqld} will be overwritten, so you should make a copy of your
edited version that you can reinstall. edited version that you can reinstall.
@cindex tools, mysql_multi_mysqld @cindex tools, mysqld_multi
@cindex scripts @cindex scripts
@cindex @code{mysql_multi_mysqld} @cindex @code{mysqld_multi}
@node mysql_multi_mysqld, mysql, safe_mysqld, Tools @node mysqld_multi, mysql, safe_mysqld, Tools
@section mysql_multi_mysqld, program for managing multiple @code{MySQL} servers @section mysqld_multi, program for managing multiple @code{MySQL} servers
@code{mysql_multi_mysqld} is meant for managing several @code{mysqld} @code{mysqld_multi} is meant for managing several @code{mysqld}
processes running in different UNIX sockets and TCP/IP ports. processes running in different UNIX sockets and TCP/IP ports.
The program will search for group(s) named [mysqld#] from my.cnf (or the The program will search for group(s) named [mysqld#] from my.cnf (or the
...@@ -28344,8 +28344,8 @@ stopping, or reporting some specific @code{mysqld} servers with this ...@@ -28344,8 +28344,8 @@ stopping, or reporting some specific @code{mysqld} servers with this
program. See the usage and options below for more information. program. See the usage and options below for more information.
@example @example
Usage: mysql_multi_mysqld [OPTIONS] @{start|stop|report@} [GNR,GNR,GNR...] Usage: mysqld_multi [OPTIONS] @{start|stop|report@} [GNR,GNR,GNR...]
or mysql_multi_mysqld [OPTIONS] @{start|stop|report@} [GNR-GNR,GNR,GNR-GNR,...] or mysqld_multi [OPTIONS] @{start|stop|report@} [GNR-GNR,GNR,GNR-GNR,...]
@end example @end example
The GNR above means the group number. You can start, stop or report The GNR above means the group number. You can start, stop or report
...@@ -28356,13 +28356,13 @@ GNR argument all the found groups will be either started, stopped, or ...@@ -28356,13 +28356,13 @@ GNR argument all the found groups will be either started, stopped, or
reported. Note that you must not have any white spaces in the GNR reported. Note that you must not have any white spaces in the GNR
list. Anything after a white space are ignored. list. Anything after a white space are ignored.
@code{mysql_multi_mysqld} supports the following options: @code{mysqld_multi} supports the following options:
@table @code @table @code
@cindex config-file option @cindex config-file option
@item --config-file=... @item --config-file=...
Alternative config file. NOTE: This will not affect this program's own Alternative config file. NOTE: This will not affect this program's own
options (group @code{[mysql_multi_mysqld]}), but only groups options (group @code{[mysqld_multi]}), but only groups
[mysqld#]. Without this option everything will be searched from the [mysqld#]. Without this option everything will be searched from the
ordinary my.cnf file. ordinary my.cnf file.
@cindex example option @cindex example option
...@@ -28405,7 +28405,7 @@ via the TCP/IP port. By default connecting is done via the UNIX socket. ...@@ -28405,7 +28405,7 @@ via the TCP/IP port. By default connecting is done via the UNIX socket.
Print the version number and exit. Print the version number and exit.
@end table @end table
Some notes about @code{mysql_multi_mysqld}: Some notes about @code{mysqld_multi}:
@itemize @bullet @itemize @bullet
@item @item
...@@ -28433,7 +28433,7 @@ it, if a @code{mysqld} process fails due to signal kill -9, or ...@@ -28433,7 +28433,7 @@ it, if a @code{mysqld} process fails due to signal kill -9, or
similar. (Like segmentation fault, which @strong{MySQL} should never do, similar. (Like segmentation fault, which @strong{MySQL} should never do,
of course ;) Please note that @code{safe_mysqld} script may require that of course ;) Please note that @code{safe_mysqld} script may require that
you start it from a certain place. This means that you may have to CD to you start it from a certain place. This means that you may have to CD to
a certain directory, before you start the @code{mysql_multi_mysqld}. If a certain directory, before you start the @code{mysqld_multi}. If
you have problems starting, please see the @code{safe_mysqld} you have problems starting, please see the @code{safe_mysqld}
script. Check especially the lines: script. Check especially the lines:
@example @example
...@@ -28460,7 +28460,7 @@ When you want to refer to a certain group using GNR with this program, ...@@ -28460,7 +28460,7 @@ When you want to refer to a certain group using GNR with this program,
just use the number in the end of the group name ( [mysqld# <== ). just use the number in the end of the group name ( [mysqld# <== ).
@item @item
You may want to use option '--user' for @code{mysqld}, but in order to You may want to use option '--user' for @code{mysqld}, but in order to
do this you need to be root when you start the @code{mysql_multi_mysqld} do this you need to be root when you start the @code{mysqld_multi}
script. Having the option in the config file doesn't matter; you will script. Having the option in the config file doesn't matter; you will
just get a warning, if you are not the superuser and the @code{mysqlds} just get a warning, if you are not the superuser and the @code{mysqlds}
are started under @strong{YOUR} UNIX account. @strong{IMPORTANT}: Make are started under @strong{YOUR} UNIX account. @strong{IMPORTANT}: Make
...@@ -28477,13 +28477,13 @@ YOU WANT} to have separate @code{mysqld} processes. Starting multiple ...@@ -28477,13 +28477,13 @@ YOU WANT} to have separate @code{mysqld} processes. Starting multiple
performance in a threaded system! performance in a threaded system!
@end itemize @end itemize
This is an example of the config file on behalf of @code{mysql_multi_mysqld}. This is an example of the config file on behalf of @code{mysqld_multi}.
@example @example
# This file should probably be in your home dir (~/.my.cnf) or /etc/my.cnf # This file should probably be in your home dir (~/.my.cnf) or /etc/my.cnf
# Version 2.1 by Jani Tolonen # Version 2.1 by Jani Tolonen
[mysql_multi_mysqld] [mysqld_multi]
mysqld = /usr/local/bin/safe_mysqld mysqld = /usr/local/bin/safe_mysqld
mysqladmin = /usr/local/bin/mysqladmin mysqladmin = /usr/local/bin/mysqladmin
user = multi_admin user = multi_admin
...@@ -28526,7 +28526,7 @@ user = jani ...@@ -28526,7 +28526,7 @@ user = jani
@cindex tools, command line @cindex tools, command line
@cindex scripts @cindex scripts
@cindex @code{mysql} @cindex @code{mysql}
@node mysql, mysqladmin, mysql_multi_mysqld, Tools @node mysql, mysqladmin, mysqld_multi, Tools
@section The Command-line Tool @section The Command-line Tool
@code{mysql} is a simple SQL shell (with GNU @code{readline} capabilities). @code{mysql} is a simple SQL shell (with GNU @code{readline} capabilities).
...@@ -39592,7 +39592,7 @@ the link and the original database is deleted. ...@@ -39592,7 +39592,7 @@ the link and the original database is deleted.
@item @item
Fixed that @code{DROP DATABASE} works on OS/2. Fixed that @code{DROP DATABASE} works on OS/2.
@item @item
New client @code{mysql_multi_mysqld}. @xref{mysql_multi_mysqld}. New client @code{mysqld_multi}. @xref{mysqld_multi}.
@item @item
Fixed bug when doing a @code{SELECT DISTINCT ... table1 LEFT JOIN Fixed bug when doing a @code{SELECT DISTINCT ... table1 LEFT JOIN
table2..} when table2 was empty. table2..} when table2 was empty.
...@@ -27,7 +27,8 @@ bin_SCRIPTS = @server_scripts@ \ ...@@ -27,7 +27,8 @@ bin_SCRIPTS = @server_scripts@ \
mysql_convert_table_format \ mysql_convert_table_format \
mysql_find_rows \ mysql_find_rows \
mysqlhotcopy \ mysqlhotcopy \
mysqldumpslow mysqldumpslow \
mysqld_multi
EXTRA_SCRIPTS = make_binary_distribution.sh \ EXTRA_SCRIPTS = make_binary_distribution.sh \
msql2mysql.sh \ msql2mysql.sh \
...@@ -42,6 +43,7 @@ EXTRA_SCRIPTS = make_binary_distribution.sh \ ...@@ -42,6 +43,7 @@ EXTRA_SCRIPTS = make_binary_distribution.sh \
mysql_find_rows.sh \ mysql_find_rows.sh \
mysqlhotcopy.sh \ mysqlhotcopy.sh \
mysqldumpslow.sh \ mysqldumpslow.sh \
mysqld_multi \
safe_mysqld.sh safe_mysqld.sh
EXTRA_DIST = $(EXTRA_SCRIPTS) \ EXTRA_DIST = $(EXTRA_SCRIPTS) \
...@@ -63,7 +65,8 @@ CLEANFILES = @server_scripts@ \ ...@@ -63,7 +65,8 @@ CLEANFILES = @server_scripts@ \
mysql_convert_table_format \ mysql_convert_table_format \
mysql_find_rows \ mysql_find_rows \
mysqlhotcopy \ mysqlhotcopy \
mysqldumpslow mysqldumpslow \
mysqld_multi
SUPERCLEANFILES = mysqlbug SUPERCLEANFILES = mysqlbug
......
#!/usr/bin/perl #!@PERL@
use Getopt::Long; use Getopt::Long;
use POSIX qw(strftime); use POSIX qw(strftime);
...@@ -9,7 +9,7 @@ $VER="2.1"; ...@@ -9,7 +9,7 @@ $VER="2.1";
$opt_config_file = undef(); $opt_config_file = undef();
$opt_example = 0; $opt_example = 0;
$opt_help = 0; $opt_help = 0;
$opt_log = "/tmp/mysql_multi_mysqld.log"; $opt_log = "/tmp/mysqld_multi.log";
$opt_mysqladmin = "mysqladmin"; $opt_mysqladmin = "mysqladmin";
$opt_mysqld = "mysqld"; $opt_mysqld = "mysqld";
$opt_no_log = 0; $opt_no_log = 0;
...@@ -43,7 +43,7 @@ sub main ...@@ -43,7 +43,7 @@ sub main
print "in your path. The command is available from the latest\n"; print "in your path. The command is available from the latest\n";
print "MySQL distribution.\n"; print "MySQL distribution.\n";
} }
my @defops = `my_print_defaults mysql_multi_mysqld`; my @defops = `my_print_defaults mysqld_multi`;
chop @defops; chop @defops;
splice @ARGV, 0, 0, @defops; splice @ARGV, 0, 0, @defops;
GetOptions("help","example","version","mysqld=s","mysqladmin=s", GetOptions("help","example","version","mysqld=s","mysqladmin=s",
...@@ -493,7 +493,7 @@ sub example ...@@ -493,7 +493,7 @@ sub example
# give you extra performance in a threaded system! It takes too much space # give you extra performance in a threaded system! It takes too much space
# to describe everything here, please consult the MySQL manual. # to describe everything here, please consult the MySQL manual.
# #
[mysql_multi_mysqld] [mysqld_multi]
mysqld = /usr/local/bin/safe_mysqld mysqld = /usr/local/bin/safe_mysqld
mysqladmin = /usr/local/bin/mysqladmin mysqladmin = /usr/local/bin/mysqladmin
user = multi_admin user = multi_admin
...@@ -550,7 +550,7 @@ Description: ...@@ -550,7 +550,7 @@ Description:
$my_progname can be used to start, or stop any number of separate $my_progname can be used to start, or stop any number of separate
mysqld processes running in different TCP/IP ports and UNIX sockets. mysqld processes running in different TCP/IP ports and UNIX sockets.
This program can read group [mysql_multi_mysqld] from my.cnf file. This program can read group [mysqld_multi] from my.cnf file.
You may want to put options mysqld=... and mysqladmin=... there. You may want to put options mysqld=... and mysqladmin=... there.
The program will search for group(s) named [mysqld#] from my.cnf (or The program will search for group(s) named [mysqld#] from my.cnf (or
...@@ -576,7 +576,7 @@ list. Anything after a white space are ignored. ...@@ -576,7 +576,7 @@ list. Anything after a white space are ignored.
Options: Options:
--config-file=... Alternative config file. NOTE: This will not affect --config-file=... Alternative config file. NOTE: This will not affect
this program's own options (group [mysql_multi_mysqld]), this program's own options (group [mysqld_multi]),
but only groups [mysqld#]. Without this option everything but only groups [mysqld#]. Without this option everything
will be searched from the ordinary my.cnf file. will be searched from the ordinary my.cnf file.
Using: $opt_config_file Using: $opt_config_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment