Linux – Should both thesqld_safe and thesqld be running at the same time on startup

centoslinuxMySQL

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!

Best Answer

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

Related Topic