10

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!

1
  • all the parameters like key_buffer_size need to be on mysqld or mysqld_safe?
    – justcode
    May 14, 2013 at 23:11

2 Answers 2

17

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

0
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.

1
  • Oh,... if you look inside mysqld_safe it does quite a bit more than a mere wrapper. Oct 29, 2015 at 2:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .