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
40defb1d
Commit
40defb1d
authored
Aug 19, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport of Chad's fix for bug #39326 to 5.0-bugteam
parent
171cb67d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+19
-5
No files found.
scripts/mysqld_safe.sh
View file @
40defb1d
...
...
@@ -113,16 +113,27 @@ parse_arguments() {
MY_PWD
=
`
pwd
`
# Check for the directories we would expect from a binary release install
if
test
-f
./share/mysql/english/errmsg.sys
-a
-x
./bin/mysqld
if
test
-n
"
$MY_BASEDIR_VERSION
"
-a
-d
"
$MY_BASEDIR_VERSION
"
then
# BASEDIR is already overridden on command line. Do not re-set.
# Use BASEDIR to discover le.
if
test
-x
"
$MY_BASEDIR_VERSION
/libexec/mysqld"
then
ledir
=
"
$MY_BASEDIR_VERSION
/libexec"
else
ledir
=
"
$MY_BASEDIR_VERSION
/bin"
fi
elif
test
-f
./share/mysql/english/errmsg.sys
-a
-x
"
$MY_PWD
/bin/mysqld"
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where bin, share and data are
ledir
=
$MY_BASEDIR_VERSION
/bin
# Where mysqld is
ledir
=
"
$MY_PWD
/bin"
# Where mysqld is
# Check for the directories we would expect from a source install
elif
test
-f
./share/mysql/english/errmsg.sys
-a
\
-x
./libexec/mysqld
elif
test
-f
./share/mysql/english/errmsg.sys
-a
-x
"
$MY_PWD
/libexec/mysqld"
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where libexec, share and var are
ledir
=
$MY_BASEDIR_VERSION
/libexec
# Where mysqld is
ledir
=
"
$MY_PWD
/libexec"
# Where mysqld is
# Since we didn't find anything, used the compiled-in defaults
else
MY_BASEDIR_VERSION
=
@prefix@
...
...
@@ -181,7 +192,10 @@ err_log=
# Get first arguments from the my.cnf file, groups [mysqld] and [mysqld_safe]
# and then merge with the command line arguments
if
test
-x
./bin/my_print_defaults
if
test
-x
"
$MY_BASEDIR_VERSION
/bin/my_print_defaults"
then
print_defaults
=
"
$MY_BASEDIR_VERSION
/bin/my_print_defaults"
elif
test
-x
./bin/my_print_defaults
then
print_defaults
=
"./bin/my_print_defaults"
elif
test
-x
@bindir@/my_print_defaults
...
...
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