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
c9465b91
Commit
c9465b91
authored
Oct 07, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in --log option.
parent
64155e3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
41 deletions
+2
-41
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+2
-41
No files found.
scripts/mysqld_multi.sh
View file @
c9465b91
...
...
@@ -4,7 +4,7 @@ use Getopt::Long;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$VER
=
"2.
7
"
;
$VER
=
"2.
8
"
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
...
...
@@ -78,7 +78,7 @@ sub main
"config-file=s"
,
"user=s"
,
"password=s"
,
"log=s"
,
"no-log"
,
"tcp-ip"
)
||
die
"Wrong option! See
$my_progname
--help for detailed information!
\n
"
;
init_log
()
;
init_log
()
if
(!
defined
(
$opt_log
))
;
$groupids
=
$ARGV
[
1]
;
if
(
$opt_version
)
{
...
...
@@ -179,45 +179,6 @@ sub init_log
}
}
####
#### Init log file. Check for appropriate place for log file, in the following
#### order my_print_defaults mysqld datadir, @datadir@, /var/log, /tmp
####
sub init_log
{
if
(
$my_print_defaults_exists
)
{
@mysqld_opts
=
`
my_print_defaults mysqld
`
;
chomp @mysqld_opts
;
foreach my
$opt
(
@mysqld_opts
)
{
if
(
$opt
=
~ m/^
\-\-
datadir[
=](
.
*
)
/
)
{
if
(
-d
"
$1
"
&&
-w
"
$1
"
)
{
$logdir
=
$1
;
}
}
}
}
if
(!
defined
(
$logdir
))
{
$logdir
=
"@datadir@"
if
(
-d
"@datadir@"
&&
-w
"@datadir@"
)
;
}
if
(!
defined
(
$logdir
))
{
# Log file was not specified and we could not log to a standard place,
# so log file be disabled for now.
print
"WARNING: Log file disabled. Maybe directory/file isn't writable?
\n
"
;
$opt_no_log
=
1
;
}
else
{
$opt_log
=
"
$logdir
/mysqld_multi.log"
;
}
}
####
#### Report living and not running MySQL servers
####
...
...
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