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


centos7.2 安裝 mysqld 5.7.21

初始化是
[root@localhost ~]# mysqld --initialize--user=mmysql
2018-08-07T16:22:02.572082Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-07T16:22:02.573515Z 0 [Note] mysqld (mysqld 5.7.21) starting as process 5834 ...
2018-08-07T16:22:02.575125Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2018-08-07T16:22:02.575159Z 0 [ERROR] Aborting

2018-08-07T16:22:02.575171Z 0 [Note] Binlog end
2018-08-07T16:22:02.575217Z 0 [Note] mysqld: Shutdown complete

 

刪除rpm安裝時生成的文件

datadir=/var/lib/mysql

解決方法

保證 --datadir目錄為空。/var/lib/mysql 這個目錄 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM