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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8228b17b
Commit
8228b17b
authored
Jun 19, 2009
by
Matthias Leich
Browse files
Options
Browse Files
Download
Plain Diff
Merge of latest changes into local tree
parents
fae2668c
1d03d6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+19
-1
No files found.
scripts/mysqld_multi.sh
View file @
8228b17b
#!/usr/bin/perl
use Getopt::Long
;
use POSIX qw
(
strftime
)
;
use POSIX qw
(
strftime
getcwd
)
;
$|
=
1
;
$VER
=
"2.16"
;
...
...
@@ -295,6 +295,7 @@ sub start_mysqlds()
{
@options
=
defaults_for_group
(
$groups
[
$i
])
;
$basedir_found
=
0
;
# The default
$mysqld_found
=
1
;
# The default
$mysqld_found
=
0
if
(!
length
(
$mysqld
))
;
$com
=
"
$mysqld
"
;
...
...
@@ -310,6 +311,14 @@ sub start_mysqlds()
$com
=
$options
[
$j
]
;
$mysqld_found
=
1
;
}
elsif
(
"--basedir="
eq substr
(
$options
[
$j
]
, 0, 10
))
{
$basedir
=
$options
[
$j
]
;
$basedir
=
~ s/^--basedir
=
//
;
$basedir_found
=
1
;
$options
[
$j
]=
quote_shell_word
(
$options
[
$j
])
;
$tmp
.
=
"
$options
[
$j
]"
;
}
else
{
$options
[
$j
]=
quote_shell_word
(
$options
[
$j
])
;
...
...
@@ -337,7 +346,16 @@ sub start_mysqlds()
print
"group [
$groups
[
$i
]] separately.
\n
"
;
exit
(
1
)
;
}
if
(
$basedir_found
)
{
$curdir
=
getcwd
()
;
chdir
(
$basedir
)
or die
"Can't change to datadir
$basedir
"
;
}
system
(
$com
)
;
if
(
$basedir_found
)
{
chdir
(
$curdir
)
or die
"Can't change back to original dir
$curdir
"
;
}
}
if
(!
$i
&&
!
$opt_no_log
)
{
...
...
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