Details
Description
The /etc/init.d/mysql script does not accept any arguments, even though the "service" tool on those platforms does accept arguments/"OPTIONS" these days. This is particularly problematic in the case of Galera, for example, where you may occasionally need to pass --wsrep-cluster-address=gcomm:// to bootstrap a cluster.
This issue is very easily resolved by replacing this line:
/usr/bin/mysqld_safe > /dev/null 2>&1 &
with this one:
/usr/bin/mysqld_safe "${@:2}" > /dev/null 2>&1 &
Gliffy Diagrams
Attachments
Issue Links
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I believe
MDEV-4253is the same issue, the analysis there is the same, i.e. mysql init script does not pass on parameters.