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
* Programs:: What do the executables do?
* 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
* mysqladmin:: Administering a @strong{MySQL} server
* mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables
...
...
@@ -28096,7 +28096,7 @@ How big a @code{VARCHAR} column can be
@menu
* Programs:: What do the executables do?
* 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
* mysqladmin:: Administering a @strong{MySQL} server
* mysqldump:: Dumping the structure and data from @strong{MySQL} databases and tables
...
...
@@ -28234,7 +28234,7 @@ shell> replace a b b a -- file1 file2 ...
@cindex tools, safe_mysqld
@cindex scripts
@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
@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
@code{safe_mysqld} will be overwritten, so you should make a copy of your
edited version that you can reinstall.
@cindex tools, mysql
_multi_mysqld
@cindex tools, mysql
d_multi
@cindex scripts
@cindex @code{mysql
_multi_mysqld
}
@node mysql
_multi_mysqld
, mysql, safe_mysqld, Tools
@section mysql
_multi_mysqld
, program for managing multiple @code{MySQL} servers
@cindex @code{mysql
d_multi
}
@node mysql
d_multi
, mysql, safe_mysqld, Tools
@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.
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
program. See the usage and options below for more information.
@example
Usage: mysql
_multi_mysqld
[OPTIONS] @{start|stop|report@} [GNR,GNR,GNR...]
or mysql
_multi_mysqld
[OPTIONS] @{start|stop|report@} [GNR-GNR,GNR,GNR-GNR,...]
Usage: mysql
d_multi
[OPTIONS] @{start|stop|report@} [GNR,GNR,GNR...]
or mysql
d_multi
[OPTIONS] @{start|stop|report@} [GNR-GNR,GNR,GNR-GNR,...]
@end example
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
reported. Note that you must not have any white spaces in the GNR
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
@cindex config-file option
@item --config-file=...
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
ordinary my.cnf file.
@cindex example option
...
...
@@ -28405,7 +28405,7 @@ via the TCP/IP port. By default connecting is done via the UNIX socket.
Print the version number and exit.
@end table
Some notes about @code{mysql
_multi_mysqld
}:
Some notes about @code{mysql
d_multi
}:
@itemize @bullet
@item
...
...
@@ -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,
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
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}
script. Check especially the lines:
@example
...
...
@@ -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# <== ).
@item
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
just get a warning, if you are not the superuser and the @code{mysqlds}
are started under @strong{YOUR} UNIX account. @strong{IMPORTANT}: Make
...
...
@@ -28477,13 +28477,13 @@ YOU WANT} to have separate @code{mysqld} processes. Starting multiple
performance in a threaded system!
@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
# This file should probably be in your home dir (~/.my.cnf) or /etc/my.cnf
# Version 2.1 by Jani Tolonen
[mysql
_multi_mysqld
]
[mysql
d_multi
]
mysqld = /usr/local/bin/safe_mysqld
mysqladmin = /usr/local/bin/mysqladmin
user = multi_admin
...
...
@@ -28526,7 +28526,7 @@ user = jani
@cindex tools, command line
@cindex scripts
@cindex @code{mysql}
@node mysql, mysqladmin, mysql
_multi_mysqld
, Tools
@node mysql, mysqladmin, mysql
d_multi
, Tools
@section The Command-line Tool
@code{mysql} is a simple SQL shell (with GNU @code{readline} capabilities).
...
...
@@ -39592,7 +39592,7 @@ the link and the original database is deleted.
@item
Fixed that @code{DROP DATABASE} works on OS/2.
@item
New client @code{mysql
_multi_mysqld}. @xref{mysql_multi_mysqld
}.
New client @code{mysql
d_multi}. @xref{mysqld_multi
}.
@item
Fixed bug when doing a @code{SELECT DISTINCT ... table1 LEFT JOIN
table2..} when table2 was empty.
scripts/Makefile.am
View file @
b45f7e7c
...
...
@@ -27,7 +27,8 @@ bin_SCRIPTS = @server_scripts@ \
mysql_convert_table_format
\
mysql_find_rows
\
mysqlhotcopy
\
mysqldumpslow
mysqldumpslow
\
mysqld_multi
EXTRA_SCRIPTS
=
make_binary_distribution.sh
\
msql2mysql.sh
\
...
...
@@ -42,6 +43,7 @@ EXTRA_SCRIPTS = make_binary_distribution.sh \
mysql_find_rows.sh
\
mysqlhotcopy.sh
\
mysqldumpslow.sh
\
mysqld_multi
\
safe_mysqld.sh
EXTRA_DIST
=
$(EXTRA_SCRIPTS)
\
...
...
@@ -63,7 +65,8 @@ CLEANFILES = @server_scripts@ \
mysql_convert_table_format
\
mysql_find_rows
\
mysqlhotcopy
\
mysqldumpslow
mysqldumpslow
\
mysqld_multi
SUPERCLEANFILES
=
mysqlbug
...
...
scripts/mysql
_multi_mysqld
→
scripts/mysql
d_multi.sh
View file @
b45f7e7c
#!
/usr/bin/perl
#!
@PERL@
use Getopt::Long
;
use POSIX qw
(
strftime
)
;
...
...
@@ -9,7 +9,7 @@ $VER="2.1";
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
$opt_help
=
0
;
$opt_log
=
"
/tmp/mysql
_multi_mysqld
.log
";
$opt_log
=
"/tmp/mysql
d_multi
.log"
;
$opt_mysqladmin
=
"mysqladmin"
;
$opt_mysqld
=
"mysqld"
;
$opt_no_log
=
0
;
...
...
@@ -43,7 +43,7 @@ sub main
print
"in your path. The command is available from the latest
\n
"
;
print
"MySQL distribution.
\n
"
;
}
my
@defops
=
`
my_print_defaults mysql
_multi_mysqld
`;
my @defops
=
`
my_print_defaults mysql
d_multi
`
;
chop @defops
;
splice @ARGV, 0, 0, @defops
;
GetOptions
(
"help"
,
"example"
,
"version"
,
"mysqld=s"
,
"mysqladmin=s"
,
...
...
@@ -493,7 +493,7 @@ sub example
# give you extra performance in a threaded system! It takes too much space
# to describe everything here, please consult the MySQL manual.
#
[mysql
_multi_mysqld
]
[mysql
d_multi
]
mysqld = /usr/local/bin/safe_mysqld
mysqladmin = /usr/local/bin/mysqladmin
user = multi_admin
...
...
@@ -550,7 +550,7 @@ Description:
$my_progname
can be used to start, or stop any number of separate
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.
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.
Options:
--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
will be searched from the ordinary my.cnf 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