[ERROR] Fatal error:please read "Security" section of the manual to find out how to run mysqld as root!

Source: Internet
Author: User

When testing mysqld to start MySQL server, the following error is reported:

2015-12-17 00:46:02 10785 [ERROR] Fatal error:please read "Security" section of the manual-find out how to run mysqld As ROOT!2015-12-17 00:46:02 10785 [ERROR] aborting2015-12-17 00:46:02 10785 [Note] Binlog end2015-12-17 00:46:02 10785 [No TE]./mysqld:shutdown Complete

Reason:

This is because the root is used to start the test. From a security standpoint, it is not recommended to start with the root user.

Solution:

1. When booting with the root user, bring--user=root, Force boot (not recommended, only for testing)

#./mysqld--user=root ps-ef|grep MySQL | Grep-v greproot     11055 11019  0 01:02 pts/0    00:00:00./mysqld--user=root

2. When you start, specify the MySQL user

#./mysqld--user=mysql ps-ef|grep mysql |grep-v grep mysql    11165 11100  2 01:06 pts/1    00:00:00./mysq LD--user=mysql

3. Specify users in MY.CNF

[Mysqld]user=mysql

[ERROR] Fatal error:please read "Security" section of the manual to find out how to run mysqld as root!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.