Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7987

Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: N/A
    • Fix Version/s: N/A
    • Component/s: Documentation
    • 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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            greenman Ian Gilfillan added a comment -
            Show
            greenman Ian Gilfillan added a comment - I have create an article at https://mariadb.com/kb/en/mariadb/running-mysqld-as-root/

              People

              • Assignee:
                greenman Ian Gilfillan
                Reporter:
                serg Sergei Golubchik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: