-bash-4.2# Service mysqld Restart
Redirecting To/bin/systemctl restart Mysqld.service
Failed to restart Mysqld.service:Unit not found.
There is no mysqld service,
-bash-4.2# -bash-4.2# chkconfig-List-list:unknown Option-bash-4.2# Chkconfig--listnote:this output shows SysV services only and does not include native SYSTEMD services. SysV configuration data might is overridden by native SYSTEMD configuration. If you want to list SYSTEMD services use'Systemctl list-unit-files'. To see services enabled on particular target use'systemctl list-dependencies [target]'. Aegis0: Off1: Off2: On3: On4: On5: On6: Offagentwatch0: Off1: Off2: On3: On4: On5: On6: Offiprdump0: Off1: Off2: On3: On4: On5: On6: Offiprinit0: Off1: Off2: On3: On4: On5: On6: Offiprupdate0: Off1: Off2: On3: On4: On5: On6: Offjexec0: Off1: On2: On3: On4: On5: On6: Offmysql.server0: Off1: Off2: On3: On4: On5: On6: Offnetconsole0: Off1: Off2: Off3: Off4: Off5: Off6: Offnetwork0: Off1: Off2: On3: On4: On5: On6: Off
Visible, the service name is not mysqld but Mysql.server
So:
-bash-4.2# Service Mysql.server Restart
Shutting down MySQL .... [OK]
Starting MySQL. [OK]
Mysqld Service failed to start, Failed to restart Mysqld.service:Unit not found.