Virgo Logbook
UTC--:--:--
GPS-
Reports
Electronics and Software›Software Installation and Test #499

(untitled)

I have changed the ownership of the data directory of MySQL
from root to mysql

I have changed in the "startup" script /usr/local/share/mysql/mysql.server the value of the variable "mysql_daemon_user" from "root" to "mysql"

We should use also this startup script when starting manually mysql, instead of using /usr/local/bin/safe_mysqld with the option --user=mysql, because precisely we could forget the option --user.

Now the mysqld daemon runs as mysql and no longer as root, which is much safer.