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!

link|improve this question

57% accept rate
feedback

2 Answers

up vote 8 down vote accepted

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

link|improve this answer
Great! Thanks for this clarification – Professor Frink Oct 2 '09 at 3:04
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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