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

前端 未结 14 1881
感动是毒
感动是毒 2020-12-23 13:25

I am not sure how to fix this:

dyn-72-33-214-45:python mona$ sudo /usr/local/mysql/bin/mysqld stop
2014-09-06 09:49:04 0 [Warning] TIMESTAMP with implicit DE         


        
相关标签:
14条回答
  • 2020-12-23 14:02

    The correct answer that worked for me on CentOS is

    /etc/init.d/mysql restart
    

    which is an init script and not /etc/init.d/mysqld restart, which is binary

    The is in fact comment of @MrTux on the question which worked for me. It took quite a bit of my time hence posting it as answer.

    0 讨论(0)
  • 2020-12-23 14:08

    Donal had the right solution for me. However, the updated plist name for 2017 is

    com.oracle.oss.mysql.mysqld.plist.
    
    0 讨论(0)
  • 2020-12-23 14:09

    How i resolved this was following the 4th point in this url: https://dev.mysql.com/doc/refman/8.0/en/changing-mysql-user.html

    1. Edit my.cnf
    2. Add user = root under under [mysqld] group of the file

    If this doesn't work then make sure you have changed the password from default.

    0 讨论(0)
  • 2020-12-23 14:10

    I'm using OS X (Yosemite) and this error happened to me when I upgraded from Mavericks to Yosemite. It was solved by using this command

    sudo /usr/local/mysql/support-files/mysql.server start
    
    0 讨论(0)
  • 2020-12-23 14:10

    in my case (RHEL7 and MariaDB) this works.

    sudo systemctl restart mariadb
    
    0 讨论(0)
  • 2020-12-23 14:12

    you might try this if you logged in with root:

    mysqld --user=root
    
    0 讨论(0)
提交回复
热议问题