9

On launching my CentOS VPS (setup by someone else), MySQL starts two processes on boot:

  1. mysql : /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
  2. root: /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.

Is this normal / the correct way to setup MySQL (that root is running mysqld_safe?)

Thanks!

  • all the parameters like key_buffer_size need to be on mysqld or mysqld_safe? – justcode May 14 '13 at 23:11
15

Yes, that's the way it's supposed to be. mysqld_safe spawns a mysql-user run daemon (mysqld).

0

If you take a peek into the contents of mysqld_safe you'll find that it is merely a shell script wrapper for launching mysqld.

  • Oh,... if you look inside mysqld_safe it does quite a bit more than a mere wrapper. – Mike Kormendy Oct 29 '15 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.