[MDEV-6004] MariaDB init script fails to start (missing dependency on MariaDB-client in server RPM) Created: 2014-04-02  Updated: 2014-04-18  Resolved: 2014-04-18

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.36, 10.0.10
Fix Version/s: 5.5.37, 10.0.11

Type: Bug Priority: Major
Reporter: Shashank Sahni Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: centos, mysqladmin, packaging
Environment:

Centos 6.5, x86_64



 Description   

I installed "MariaDB-server" on CentOS using offical repos. "service mysql start" took an awful lot of time, resulting in a time out. Investigation revealed that the function wait_for_ready() defined in /etc/init.d/mysql was using 'mysqladmin ping' to check the status of the server. Ironically, mysqladmin wasn't marked as dependency of 'MariaDB-server' package and hence wasn't installed. Installing "MariaDB-client" did the trick.

To sum up, MariaDB-server uses a tool which is provided by MariaDB-client, but doesn't request it(as dependency) during installation resulting in service management.



 Comments   
Comment by Elena Stepanova [ 2014-04-02 ]

Indeed, while it looks expensive to install the whole package for a single ping that mysqladmin does upon server startup via the init script, it has to be done anyway, otherwise the script never reports success (even though the server starts, of course).

Generated at Thu Feb 08 07:08:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.