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
abcd8b03
Commit
abcd8b03
authored
Jul 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-7249
into mysql.com:/home/jimw/my/mysql-4.1-clean
parents
3d5be633
3e7a5763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
11 deletions
+29
-11
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+29
-11
No files found.
scripts/mysqld_safe.sh
View file @
abcd8b03
...
...
@@ -84,31 +84,49 @@ parse_arguments() {
}
#
# First, try to find BASEDIR and ledir (where mysqld is)
#
MY_PWD
=
`
pwd
`
# Check if we are starting this relative (for the binary release)
if
test
-f
./share/mysql/english/errmsg.sys
-a
\
-x
./bin/mysqld
# Check for the directories we would expect from a binary release install
if
test
-f
./share/mysql/english/errmsg.sys
-a
-x
./bin/mysqld
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where bin, share and data are
ledir
=
$MY_BASEDIR_VERSION
/bin
# Where mysqld is
DATADIR
=
$MY_BASEDIR_VERSION
/data
if
test
-z
"
$defaults
"
then
defaults
=
"--defaults-extra-file=
$MY_BASEDIR_VERSION
/data/my.cnf"
fi
# Check if this is a 'moved install directory'
# Check for the directories we would expect from a source install
elif
test
-f
./share/mysql/english/errmsg.sys
-a
\
-x
./libexec/mysqld
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where libexec, share and var are
ledir
=
$MY_BASEDIR_VERSION
/libexec
# Where mysqld is
DATADIR
=
$MY_BASEDIR_VERSION
/var
# Since we didn't find anything, used the compiled-in defaults
else
MY_BASEDIR_VERSION
=
@prefix@
DATADIR
=
@localstatedir@
ledir
=
@libexecdir@
fi
#
# Second, try to find the data directory
#
# Try where the binary installs put it
if
test
-d
$MY_BASEDIR_VERSION
/data/mysql
then
DATADIR
=
$MY_BASEDIR_VERSION
/data
if
test
-z
"
$defaults
"
then
defaults
=
"--defaults-extra-file=
$DATADIR
/my.cnf"
fi
# Next try where the source installs put it
elif
test
-d
$MY_BASEDIR_VERSION
/var/mysql
then
DATADIR
=
$MY_BASEDIR_VERSION
/var
# Or just give up and use our compiled-in default
else
DATADIR
=
@localstatedir@
fi
user
=
@MYSQLD_USER@
niceness
=
0
...
...
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