Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.36, 10.0.10
-
None
-
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.
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).