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
0f06f6eb
Commit
0f06f6eb
authored
Dec 08, 2000
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in mysqld_multi.
scripts/mysqld_multi.sh: Small changes and bug fixes.
parent
0bcc9d53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+17
-14
No files found.
scripts/mysqld_multi.sh
View file @
0f06f6eb
#!
@PERL@
#!
/usr/bin/perl
use Getopt::Long
;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$VER
=
"2.
1
"
;
$VER
=
"2.
2
"
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
...
...
@@ -134,12 +134,13 @@ sub report_mysqlds
@options
=
`
$com
`
;
chop @options
;
$com
=
"
$mysqladmin
-u
$opt_user
-p
$opt_password
"
;
$com
=
"
$mysqladmin
-u
$opt_user
"
;
$com
.
=
defined
(
$opt_password
)
?
" -p
$opt_password
"
:
""
;
$com
.
=
$opt_tcp_ip
?
" -h 127.0.0.1"
:
""
;
for
(
$j
=
0
;
defined
(
$options
[
$j
])
;
$j
++
)
{
if
(((
$options
[
$j
]
=
~ m/^
(
\-\-
socket
)(
.
*
)
$/
)
&&
!
$opt_tcp_ip
)
||
(
$options
[
$j
]
=
~ m/^
(
\-\-
port
)(
.
*
)
$/
))
if
(((
$options
[
$j
]
=
~ m/^
(
\-\-
socket
\=
)(
.
*
)
$/
)
&&
!
$opt_tcp_ip
)
||
(
$options
[
$j
]
=
~ m/^
(
\-\-
port
\=
)(
.
*
)
$/
))
{
$com
.
=
"
$options
[
$j
]"
;
}
...
...
@@ -242,12 +243,13 @@ sub stop_mysqlds()
@options
=
`
$com
`
;
chop @options
;
$com
=
"
$mysqladmin
-u
$opt_user
-p
$opt_password
"
;
$com
=
"
$mysqladmin
-u
$opt_user
"
;
$com
.
=
defined
(
$opt_password
)
?
" -p
$opt_password
"
:
""
;
$com
.
=
$opt_tcp_ip
?
" -h 127.0.0.1"
:
""
;
for
(
$j
=
0
;
defined
(
$options
[
$j
])
;
$j
++
)
{
if
(((
$options
[
$j
]
=
~ m/^
(
\-\-
socket
)(
.
*
)
$/
)
&&
!
$opt_tcp_ip
)
||
(
$options
[
$j
]
=
~ m/^
(
\-\-
port
)(
.
*
)
$/
))
if
(((
$options
[
$j
]
=
~ m/^
(
\-\-
socket
\=
)(
.
*
)
$/
)
&&
!
$opt_tcp_ip
)
||
(
$options
[
$j
]
=
~ m/^
(
\-\-
port
\=
)(
.
*
)
$/
))
{
$com
.
=
"
$options
[
$j
]"
;
}
...
...
@@ -461,8 +463,10 @@ sub example
# safe_mysqld 'guards' every mysqld process and will restart it, if mysqld
# process fails due to signal kill -9, or similar. (Like segmentation fault,
# which MySQL should never do, of course ;) Please note that safe_mysqld
# script may require that you start it from a certain place. If you have
# problems starting, please see the script. Check especially the lines:
# script may require that you start it from a certain place. This means that
# you may have to CD to a certain directory, before you start the
# mysqld_multi. If you have problems starting, please see the script.
# Check especially the lines:
# --------------------------------------------------------------------------
# MY_PWD=`pwd`
# Check if we are starting this relative (for the binary release)
...
...
@@ -482,16 +486,15 @@ sub example
# 7.You may want to use option '--user' for mysqld, but in order to do this
# you need to be root when you start this script. Having the option
# in the config file doesn't matter; you will just get a warning, if you are
# no
the superuser and the mysqld'
s are started under *your* unix account.
# IMPORTANT: Make sure that the pid-file and the data directory
is
# no
t the superuser and the mysqld
s are started under *your* unix account.
# IMPORTANT: Make sure that the pid-file and the data directory
are
# read+write(+execute for the latter one) accessible for *THAT* UNIX user,
# who the specific mysqld process is started as. *DON'T* use the UNIX root
# account for this, unless you *KNOW* what you are doing!
# 8.MOST IMPORTANT: Make sure that you understand the meanings of the options
# that are passed to the mysqlds and why *WOULD YOU WANT* to have separate
# mysqld processes. Starting multiple mysqlds in one data directory *WON'T*
# give you extra performance in a threaded system! It takes too much space
# to describe everything here, please consult the MySQL manual.
# give you extra performance in a threaded system!
#
[mysqld_multi]
mysqld = /usr/local/bin/safe_mysqld
...
...
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