Mystery mysqld on ArchLinux
Posted: Fri Jan 03, 2014 2:00 pm
I installed apache and mysql on my arch system, and started the service with 'systemctl enable httpd' and 'systemctl enable mysqld'.
Both are running properly, but there are two mysqld processes, and systemctl is responsible for only one of them:
The second mysqld process has a higher PID (626), and is started by me instead of 'mysql'. Process was there since I installed arch (before enabling the mysqld using systemctl), and trying to connect to it using the mysql command line results in a "no socket in /var/run" error. I guess it's started and used by kde.
Is this expected behaviour? And how do I figure out what started the second one?
Both are running properly, but there are two mysqld processes, and systemctl is responsible for only one of them:
Code: Select all
xiannox@suigintou: ~> systemctl status mysqld
mysqld.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: active (running) since Fri 2014-01-03 13:18:04 CET; 1h 29min ago
Process: 352 ExecStartPost=/usr/bin/mysqld-post (code=exited, status=0/SUCCESS)
Main PID: 351 (mysqld)
CGroup: /system.slice/mysqld.service
└─351 /usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid
Is this expected behaviour? And how do I figure out what started the second one?