[MDEV-7987] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! Created: 2015-04-14  Updated: 2015-04-29  Resolved: 2015-04-14

Status: Closed
Project: MariaDB Server
Component/s: Documentation
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: None


 Description   

When MariaDB is run under the root user, it fails with an error: Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

This was written many years ago and was referring to the following paragraph in MySQL manual:

Never run the MySQL server as the Unix root user. This is extremely dangerous, because any user with the FILE privilege is able to cause the server to create files as root (for example, ~root/.bashrc). To prevent this, mysqld refuses to run as root unless that is specified explicitly using the --user=root option.

But we don't have that in the Knowledge Base. So this error leads user nowhere.

KB needs to explain how to run mysqld as root.



 Comments   
Comment by Ian Gilfillan [ 2015-04-14 ]

I have create an article at https://mariadb.com/kb/en/mariadb/running-mysqld-as-root/

Generated at Thu Feb 08 07:23:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.