Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to avoid start mysql services at system boot

I have installed mysql community server 5.7 from the offical yum/dnf repo in the offical website
when i startup my desktop , the mysql services is active(running).

 tony  ~  sudo systemctl status mysqld.service 
[sudo] password for tony: 
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-08-11 08:09:29 -05; 1h 41min ago
     Docs: man:mysqld(8)
 Main PID: 1460 (mysqld)
    Tasks: 28 (limit: 4915)
   CGroup: /system.slice/mysqld.service
           └─1460 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/

Aug 11 08:09:24 localhost.localdomain systemd[1]: Starting MySQL Server... Aug 11 08:09:25 localhost.localdomain python3[836]: detected unhandled Python exception in '/usr/sbin/semanage' Aug 11 08:09:25 localhost.localdomain python3[1015]: detected unhandled Python exception in '/usr/sbin/semanage' Aug 11 08:09:29 localhost.localdomain systemd[1]: Started MySQL Server.

the problem is when shutdown my desktop is take too long for do it, because it firts try to stop mysql, but it take a lot time