Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b45f7e7c
Commit
b45f7e7c
authored
Dec 07, 2000
by
jani@prima.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed name mysql_multi_mysqld to mysqld_multi.
parent
1ac18836
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
27 deletions
+30
-27
Docs/manual.texi
Docs/manual.texi
+19
-19
scripts/Makefile.am
scripts/Makefile.am
+5
-2
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+6
-6
No files found.
Docs/manual.texi
View file @
b45f7e7c
...
@@ -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
* mysql
d_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
* mysql
d_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, mysql
d_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, mysql
d_multi
@cindex scripts
@cindex scripts
@cindex @code{mysql
_multi_mysqld
}
@cindex @code{mysql
d_multi
}
@node mysql
_multi_mysqld
, mysql, safe_mysqld, Tools
@node mysql
d_multi
, mysql, safe_mysqld, Tools
@section mysql
_multi_mysqld
, program for managing multiple @code{MySQL} servers
@section mysql
d_multi
, program for managing multiple @code{MySQL} servers
@code{mysql
_multi_mysqld
} is meant for managing several @code{mysqld}
@code{mysql
d_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: mysql
d_multi
[OPTIONS] @{start|stop|report@} [GNR,GNR,GNR...]
or mysql
_multi_mysqld
[OPTIONS] @{start|stop|report@} [GNR-GNR,GNR,GNR-GNR,...]
or mysql
d_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{mysql
d_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{[mysql
d_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{mysql
d_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{mysql
d_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{mysql
d_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{mysql
d_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
]
[mysql
d_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, mysql
d_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{mysql
d_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.
scripts/Makefile.am
View file @
b45f7e7c
...
@@ -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
...
...
scripts/mysql
_multi_mysqld
→
scripts/mysql
d_multi.sh
View file @
b45f7e7c
#!
/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/mysql
d_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 mysql
d_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
]
[mysql
d_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 [mysql
d_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 [mysql
d_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment