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
04843417
Commit
04843417
authored
Mar 04, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for running different versions of mysqld with mysqld_multi
parent
d737186f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+19
-5
No files found.
scripts/mysqld_multi.sh
View file @
04843417
...
@@ -4,7 +4,7 @@ use Getopt::Long;
...
@@ -4,7 +4,7 @@ use Getopt::Long;
use POSIX qw
(
strftime
)
;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$|
=
1
;
$VER
=
"2.
2
"
;
$VER
=
"2.
3
"
;
$opt_config_file
=
undef
()
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
$opt_example
=
0
;
...
@@ -183,7 +183,7 @@ sub report_mysqlds
...
@@ -183,7 +183,7 @@ sub report_mysqlds
sub start_mysqlds
()
sub start_mysqlds
()
{
{
my
(
@groups,
$com
,
$i
, @options,
$j
)
;
my
(
@groups,
$com
,
$
tmp
,
$
i
, @options,
$j
)
;
if
(!
$opt_no_log
)
if
(!
$opt_no_log
)
{
{
...
@@ -202,11 +202,20 @@ sub start_mysqlds()
...
@@ -202,11 +202,20 @@ sub start_mysqlds()
@options
=
`
$com
`
;
@options
=
`
$com
`
;
chop @options
;
chop @options
;
$com
=
"
$mysqld
"
;
$com
=
"
$mysqld
"
;
for
(
$j
=
0
;
defined
(
$options
[
$j
])
;
$j
++
)
for
(
$j
=
0
,
$tmp
=
""
;
defined
(
$options
[
$j
])
;
$j
++
)
{
{
$com
.
=
"
$options
[
$j
]"
;
if
(
"--mysqld="
eq substr
(
$options
[
$j
]
, 0, 9
))
{
$options
[
$j
]=
~ s/
\-\-
mysqld
\=
//
;
$com
=
$options
[
$j
]
;
}
else
{
$tmp
.
=
"
$options
[
$j
]"
;
}
}
}
$com
.
=
$tmp
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" &"
;
$com
.
=
" &"
;
system
(
$com
)
;
system
(
$com
)
;
...
@@ -595,6 +604,11 @@ Options:
...
@@ -595,6 +604,11 @@ Options:
to this option also. The options are passed to mysqld. Just
to this option also. The options are passed to mysqld. Just
make sure you have mysqld in your PATH or fix mysqld_safe.
make sure you have mysqld in your PATH or fix mysqld_safe.
Using:
$mysqld
Using:
$mysqld
Please note: Since mysqld_multi version 2.3 you can also
give this option in groups [mysqld#]! This will be
recognized as a special option and will not be passed
to the mysqld. This will allow one to start different
mysqld versions with mysqld_multi.
--no-log Print to stdout instead of the log file. By default the log
--no-log Print to stdout instead of the log file. By default the log
file is turned on.
file is turned on.
--password=... Password for user for mysqladmin.
--password=... Password for user for mysqladmin.
...
...
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