Page 1 of 1

Mystery mysqld on ArchLinux

Posted: Fri Jan 03, 2014 2:00 pm
by Xian Nox
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:

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
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?

Re: Mystery mysqld on ArchLinux

Posted: Fri Jan 03, 2014 4:52 pm
by codestation
Do you have Akonadi enabled? Is uses mysql to store its metadata. Amarok also uses an mebedded mysql db to store its settings/metadata. Personally i just disable the Akonadi/Nepomuk combo (i consider Nepomuk to be a great solution, sadly is still implemented poorly).

Re: Mystery mysqld on ArchLinux

Posted: Sat Jan 04, 2014 4:10 pm
by Xian Nox
It was Akonadi. Disabled it (how for future reference)