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
c43084ac
Commit
c43084ac
authored
Oct 08, 2004
by
jani@a193-229-222-2.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1
into a193-229-222-2.elisa-laajakaista.fi:/home/my/bk/mysql-4.1
parents
234c80b6
951e54df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
12 deletions
+37
-12
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+36
-12
No files found.
BitKeeper/etc/logging_ok
View file @
c43084ac
...
@@ -66,6 +66,7 @@ igor@hundin.mysql.fi
...
@@ -66,6 +66,7 @@ igor@hundin.mysql.fi
igor@rurik.mysql.com
igor@rurik.mysql.com
ingo@mysql.com
ingo@mysql.com
jan@hundin.mysql.fi
jan@hundin.mysql.fi
jani@a193-229-222-2.elisa-laajakaista.fi
jani@a80-186-24-72.elisa-laajakaista.fi
jani@a80-186-24-72.elisa-laajakaista.fi
jani@a80-186-41-201.elisa-laajakaista.fi
jani@a80-186-41-201.elisa-laajakaista.fi
jani@dsl-jkl1657.dial.inet.fi
jani@dsl-jkl1657.dial.inet.fi
...
...
scripts/mysqld_multi.sh
View file @
c43084ac
...
@@ -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.
8
"
;
$VER
=
"2.
9
"
;
$opt_config_file
=
undef
()
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
$opt_example
=
0
;
...
@@ -17,6 +17,7 @@ $opt_password = undef();
...
@@ -17,6 +17,7 @@ $opt_password = undef();
$opt_tcp_ip
=
0
;
$opt_tcp_ip
=
0
;
$opt_user
=
"root"
;
$opt_user
=
"root"
;
$opt_version
=
0
;
$opt_version
=
0
;
$opt_silent
=
0
;
my
$my_print_defaults_exists
=
1
;
my
$my_print_defaults_exists
=
1
;
my
$logdir
=
undef
()
;
my
$logdir
=
undef
()
;
...
@@ -41,10 +42,13 @@ sub main
...
@@ -41,10 +42,13 @@ sub main
{
{
# We can't throw out yet, since --version, --help, or --example may
# We can't throw out yet, since --version, --help, or --example may
# have been given
# have been given
print
"WARNING! my_print_defaults command not found!
\n
"
;
if
(!
$opt_silent
)
print
"Please make sure you have this command available and
\n
"
;
{
print
"in your path. The command is available from the latest
\n
"
;
print
"WARNING! my_print_defaults command not found!
\n
"
;
print
"MySQL distribution.
\n
"
;
print
"Please make sure you have this command available and
\n
"
;
print
"in your path. The command is available from the latest
\n
"
;
print
"MySQL distribution.
\n
"
;
}
$my_print_defaults_exists
=
0
;
$my_print_defaults_exists
=
0
;
}
}
if
(
$my_print_defaults_exists
)
if
(
$my_print_defaults_exists
)
...
@@ -75,7 +79,8 @@ sub main
...
@@ -75,7 +79,8 @@ sub main
splice @ARGV, 0, 0, @defops
;
splice @ARGV, 0, 0, @defops
;
}
}
GetOptions
(
"help"
,
"example"
,
"version"
,
"mysqld=s"
,
"mysqladmin=s"
,
GetOptions
(
"help"
,
"example"
,
"version"
,
"mysqld=s"
,
"mysqladmin=s"
,
"config-file=s"
,
"user=s"
,
"password=s"
,
"log=s"
,
"no-log"
,
"tcp-ip"
)
"config-file=s"
,
"user=s"
,
"password=s"
,
"log=s"
,
"no-log"
,
"tcp-ip"
,
"silent"
)
||
die
"Wrong option! See
$my_progname
--help for detailed information!
\n
"
;
||
die
"Wrong option! See
$my_progname
--help for detailed information!
\n
"
;
init_log
()
if
(!
defined
(
$opt_log
))
;
init_log
()
if
(!
defined
(
$opt_log
))
;
...
@@ -86,11 +91,6 @@ sub main
...
@@ -86,11 +91,6 @@ sub main
exit
(
0
)
;
exit
(
0
)
;
}
}
example
()
if
(
$opt_example
)
;
example
()
if
(
$opt_example
)
;
if
(!
defined
((
$mysqld
=
my_which
(
$opt_mysqld
))))
{
print
"Couldn't find the mysqld binary! Tried:
$opt_mysqld
\n
"
;
$flag_exit
=
1
;
}
if
(!
defined
((
$mysqladmin
=
my_which
(
$opt_mysqladmin
))))
if
(!
defined
((
$mysqladmin
=
my_which
(
$opt_mysqladmin
))))
{
{
print
"Couldn't find the mysqladmin binary! Tried:
$opt_mysqladmin
\n
"
;
print
"Couldn't find the mysqladmin binary! Tried:
$opt_mysqladmin
\n
"
;
...
@@ -132,6 +132,14 @@ sub main
...
@@ -132,6 +132,14 @@ sub main
}
}
elsif
(
$ARGV
[
0] eq
'start'
||
$ARGV
[
0] eq
'START'
)
elsif
(
$ARGV
[
0] eq
'start'
||
$ARGV
[
0] eq
'START'
)
{
{
if
(!
defined
((
$mysqld
=
my_which
(
$opt_mysqld
)))
&&
!
$opt_silent
)
{
print
"WARNING: Couldn't find the default mysqld binary. "
;
print
"Tried:
$opt_mysqld
\n
"
;
print
"This is OK, if you are using option --mysqld= under groups"
;
print
" [mysqldN] separately for each.
\n
"
;
print
"(Disable warnings with --silent)
\n
"
;
}
start_mysqlds
()
;
start_mysqlds
()
;
}
}
else
else
...
@@ -170,7 +178,10 @@ sub init_log
...
@@ -170,7 +178,10 @@ sub init_log
{
{
# Log file was not specified and we could not log to a standard place,
# Log file was not specified and we could not log to a standard place,
# so log file be disabled for now.
# so log file be disabled for now.
print
"WARNING: Log file disabled. Maybe directory/file isn't writable?
\n
"
;
if
(!
$opt_silent
)
{
print
"WARNING: Log file disabled. Maybe directory or file isn't writable?
\n
"
;
}
$opt_no_log
=
1
;
$opt_no_log
=
1
;
}
}
else
else
...
@@ -269,6 +280,8 @@ sub start_mysqlds()
...
@@ -269,6 +280,8 @@ sub start_mysqlds()
@options
=
`
$com
`
;
@options
=
`
$com
`
;
chop @options
;
chop @options
;
$mysqld_found
=
1
;
# The default
$mysqld_found
=
0
if
(!
length
(
$mysqld
))
;
$com
=
"
$mysqld
"
;
$com
=
"
$mysqld
"
;
for
(
$j
=
0,
$tmp
=
""
;
defined
(
$options
[
$j
])
;
$j
++
)
for
(
$j
=
0,
$tmp
=
""
;
defined
(
$options
[
$j
])
;
$j
++
)
{
{
...
@@ -276,6 +289,7 @@ sub start_mysqlds()
...
@@ -276,6 +289,7 @@ sub start_mysqlds()
{
{
$options
[
$j
]=
~ s/
\-\-
mysqld
\=
//
;
$options
[
$j
]=
~ s/
\-\-
mysqld
\=
//
;
$com
=
$options
[
$j
]
;
$com
=
$options
[
$j
]
;
$mysqld_found
=
1
;
}
}
else
else
{
{
...
@@ -286,6 +300,15 @@ sub start_mysqlds()
...
@@ -286,6 +300,15 @@ sub start_mysqlds()
$com
.
=
$tmp
;
$com
.
=
$tmp
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" &"
;
$com
.
=
" &"
;
if
(!
$mysqld_found
)
{
print
"
\n\n
"
;
print
"FATAL ERROR: Tried to start mysqld under group [
$groups
[
$i
]], "
;
print
"but no mysqld binary was found.
\n
"
;
print
"Please add --mysqld=... in group [mysqld_multi], or add it to "
;
print
"group [
$groups
[
$i
]] separately.
\n
"
;
exit
(
1
)
;
}
system
(
$com
)
;
system
(
$com
)
;
}
}
if
(!
$i
&&
!
$opt_no_log
)
if
(!
$i
&&
!
$opt_no_log
)
...
@@ -678,6 +701,7 @@ Options:
...
@@ -678,6 +701,7 @@ Options:
--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.
--silent Disable warnings.
--tcp-ip Connect to the MySQL server(s) via the TCP/IP port instead
--tcp-ip Connect to the MySQL server(s) via the TCP/IP port instead
of the UNIX socket. This affects stopping and reporting.
of the UNIX socket. This affects stopping and reporting.
If a socket file is missing, the server may still be
If a socket file is missing, the server may still be
...
...
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