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
26e34093
Commit
26e34093
authored
Oct 09, 2004
by
jani@a193-229-222-2.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some extra information to output in case --verbose
was given.
parent
aa294cbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
2 deletions
+55
-2
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+17
-2
support-files/mysqld_multi.server.sh
support-files/mysqld_multi.server.sh
+38
-0
No files found.
scripts/mysqld_multi.sh
View file @
26e34093
...
@@ -81,6 +81,12 @@ sub main
...
@@ -81,6 +81,12 @@ sub main
"silent"
,
"verbose"
)
"silent"
,
"verbose"
)
||
die
"Wrong option! See
$my_progname
--help for detailed information!
\n
"
;
||
die
"Wrong option! See
$my_progname
--help for detailed information!
\n
"
;
if
(
$opt_verbose
&&
$opt_silent
)
{
print
"Both --verbose and --silent has been given. Some of the warnings "
;
print
"will be disabled
\n
and some will be enabled.
\n\n
"
;
}
init_log
()
if
(!
defined
(
$opt_log
))
;
init_log
()
if
(!
defined
(
$opt_log
))
;
$groupids
=
$ARGV
[
1]
;
$groupids
=
$ARGV
[
1]
;
if
(
$opt_version
)
if
(
$opt_version
)
...
@@ -247,7 +253,7 @@ sub report_mysqlds
...
@@ -247,7 +253,7 @@ sub report_mysqlds
sub start_mysqlds
()
sub start_mysqlds
()
{
{
my
(
@groups,
$com
,
$tmp
,
$i
, @options,
$j
,
$mysqld_found
)
;
my
(
@groups,
$com
,
$tmp
,
$i
, @options,
$j
,
$mysqld_found
,
$info_sent
)
;
if
(!
$opt_no_log
)
if
(!
$opt_no_log
)
{
{
...
@@ -287,6 +293,15 @@ sub start_mysqlds()
...
@@ -287,6 +293,15 @@ sub start_mysqlds()
$tmp
.
=
"
$options
[
$j
]"
;
$tmp
.
=
"
$options
[
$j
]"
;
}
}
}
}
if
(
$opt_verbose
&&
$com
=
~ m/
\/
safe_mysqld
$/
&&
!
$info_sent
)
{
print
"WARNING: safe_mysqld is being used to start mysqld. In this case you "
;
print
"may need to pass
\n\"
ledir=...
\"
under groups [mysqldN] to "
;
print
"safe_mysqld in order to find the actual mysqld binary.
\n
"
;
print
"ledir (library executable directory) should be the path to the "
;
print
"wanted mysqld binary.
\n\n
"
;
$info_sent
=
1
;
}
$com
.
=
$tmp
;
$com
.
=
$tmp
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" &"
;
$com
.
=
" &"
;
...
@@ -724,13 +739,13 @@ Options:
...
@@ -724,13 +739,13 @@ Options:
file is turned on.
file is turned on.
--password=... Password for user for mysqladmin.
--password=... Password for user for mysqladmin.
--silent Disable warnings.
--silent Disable warnings.
--verbose Be more verbose.
--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
running, but can be accessed only via the TCP/IP port.
running, but can be accessed only via the TCP/IP port.
By default connecting is done via the UNIX socket.
By default connecting is done via the UNIX socket.
--user=... MySQL user for mysqladmin. Using:
$opt_user
--user=... MySQL user for mysqladmin. Using:
$opt_user
--verbose Be more verbose.
--version Print the version number and exit.
--version Print the version number and exit.
EOF
EOF
exit
(
0
)
;
exit
(
0
)
;
...
...
support-files/mysqld_multi.server.sh
0 → 100644
View file @
26e34093
#! /bin/sh
#
# A simple startup script for mysqld_multi by Tim Smith and Jani Tolonen.
# This script assumes that my.cnf file exists either in /etc/my.cnf or
# /root/.my.cnf and has groups [mysqld_multi] and [mysqldN]. See the
# mysqld_multi documentation for detailed instructions.
#
# This script can be used as /etc/init.d/mysql.server
#
basedir
=
/usr/local/mysql
bindir
=
/usr/local/mysql/bin
if
test
-x
$bindir
/mysqld_multi
then
mysqld_multi
=
"
$bindir
/mysqld_multi"
;
else
echo
"Can't execute
$bindir
/mysqld_multi from dir
$basedir
"
fi
case
"
$1
"
in
start
)
"
$mysqld_multi
"
start
;;
stop
)
"
$mysqld_multi
"
stop
;;
report
)
"
$mysqld_multi
"
report
;;
restart
)
"
$mysqld_multi
"
stop
"
$mysqld_multi
"
start
;;
*
)
echo
"Usage:
$0
{start|stop|report|restart}"
>
&2
;;
esac
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