The script /etc/init.d/mysqld will always modify the permissions of the MySQL datadir to mode 755 when the mysqld service is started. I prefer to keep this folder as mode 750 and must modify the above script. Not a problem for a single instance of MySQL, but a concern when running a server farm of them.<br />
<br />
In 755 mode your database names are visible to all users on that server.
↧