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
fb8bc59f
Commit
fb8bc59f
authored
Sep 16, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqld_safe: don't use "$DATADIR/my.cnf"
finally removed, after being deprecated since 2005
parent
7fc36e69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+3
-17
No files found.
scripts/mysqld_safe.sh
View file @
fb8bc59f
...
...
@@ -550,10 +550,6 @@ fi
if
test
-d
$MY_BASEDIR_VERSION
/data/mysql
then
DATADIR
=
$MY_BASEDIR_VERSION
/data
if
test
-z
"
$defaults
"
-a
-r
"
$DATADIR
/my.cnf"
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
...
...
@@ -565,23 +561,13 @@ fi
if
test
-z
"
$MYSQL_HOME
"
then
if
test
-r
"
$MY_BASEDIR_VERSION
/my.cnf"
&&
test
-r
"
$DATADIR
/my.cnf"
then
log_error
"WARNING: Found two instances of my.cnf -
$MY_BASEDIR_VERSION
/my.cnf and
$DATADIR
/my.cnf
IGNORING
$DATADIR
/my.cnf"
MYSQL_HOME
=
$MY_BASEDIR_VERSION
elif
test
-r
"
$DATADIR
/my.cnf"
if
test
-r
"
$DATADIR
/my.cnf"
then
log_error
"WARNING: Found
$DATADIR
/my.cnf
The data directory is
a deprecate
d location for my.cnf, please move it to
The data directory is
not a vali
d location for my.cnf, please move it to
$MY_BASEDIR_VERSION
/my.cnf"
MYSQL_HOME
=
$DATADIR
else
MYSQL_HOME
=
$MY_BASEDIR_VERSION
fi
MYSQL_HOME
=
$MY_BASEDIR_VERSION
fi
export
MYSQL_HOME
...
...
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