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
ab6ecca7
Commit
ab6ecca7
authored
Oct 16, 2009
by
Peter Lieverdink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `configtest' option to the init script to check for a valid my.cnf file.
parent
7d24cab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
support-files/mysql.server.sh
support-files/mysql.server.sh
+29
-2
No files found.
support-files/mysql.server.sh
View file @
ab6ecca7
...
@@ -434,9 +434,36 @@ case "$mode" in
...
@@ -434,9 +434,36 @@ case "$mode" in
fi
fi
fi
fi
;;
;;
*
)
'configtest'
)
# Safeguard (relative paths, core dumps..)
cd
$basedir
echo
$echo_n
"Testing MySQL configuration syntax"
daemon
=
$bindir
/mysqld
if
test
-x
$libexecdir
/mysqld
then
daemon
=
$libexecdir
/mysqld
elif
test
-x
$sbindir
/mysqld
then
daemon
=
$sbindir
/mysqld
elif
test
-x
`
which mysqld
`
then
daemon
=
`
which mysqld
`
else
log_failure_msg
"Unable to locate the mysqld binary!"
exit
1
fi
help_out
=
`
$daemon
--help
2>&1
`
;
r
=
$?
if
test
"
$r
"
!=
0
;
then
log_failure_msg
"
$help_out
"
log_failure_msg
"There are syntax errors in the server configuration. Please fix them!"
else
log_success_msg
"Syntax OK"
fi
exit
$r
;;
*
)
# usage
# usage
echo
"Usage:
$0
{start|stop|restart|reload|force-reload|status} [ MySQL server options ]"
echo
"Usage:
$0
{start|stop|restart|reload|force-reload|status
|configtest
} [ MySQL server options ]"
exit
1
exit
1
;;
;;
esac
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