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
d4d0f9c1
Commit
d4d0f9c1
authored
Apr 26, 2005
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Bug#6221, "mysqld_multi doesn't read the init_connect
option in my.cnf correctly"
parent
a82c7bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+27
-1
No files found.
scripts/mysqld_multi.sh
View file @
d4d0f9c1
...
...
@@ -4,7 +4,7 @@ use Getopt::Long;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$VER
=
"2.1
3
"
;
$VER
=
"2.1
4
"
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
...
...
@@ -159,6 +159,31 @@ sub main
}
}
####
#### Quote option argument. Add double quotes around the argument
#### and escape the following: $, \, "
#### This function is needed, because my_print_defaults drops possible
#### quotes, single or double, from in front of an argument and from
#### the end.
####
sub quote_opt_arg
{
my
(
$option
)=
@_
;
if
(
$option
=
~ m/
(
\-\-
[
a-zA-Z0-9
\_\-
]
+
)=(
.
*
)
/
)
{
$option
=
$1
;
$arg
=
$2
;
$arg
=
~ s/
\\
/
\\\\
/g
;
# Escape escape character first to avoid doubling.
$arg
=
~ s/
\$
/
\\\$
/g
;
$arg
=
~ s/
\"
/
\\\"
/g
;
$arg
=
"
\"
"
.
$arg
.
"
\"
"
;
$option
=
$option
.
"="
.
$arg
;
}
return
$option
;
}
####
#### Init log file. Check for appropriate place for log file, in the following
#### order my_print_defaults mysqld datadir, @datadir@, /var/log, /tmp
...
...
@@ -293,6 +318,7 @@ sub start_mysqlds()
else
{
$options
[
$j
]=
~ s/
;
/
\\
;
/g
;
$options
[
$j
]=
quote_opt_arg
(
$options
[
$j
])
;
$tmp
.
=
"
$options
[
$j
]"
;
}
}
...
...
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