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

[root@test ~]# /usr/local/mysql/bin/mysqld
2018-08-05T08:29:05.143142Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2018-08-05T08:29:05.145384Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.12) starting as process 1572
2018-08-05T08:29:05.158221Z 0 [ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2018-08-05T08:29:05.158267Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-08-05T08:29:05.165381Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.12) MySQL Community Server - GPL.
[root@test ~]# /usr/local/mysql/bin/mysqld --help
2018-08-05T08:29:46.240673Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
mysqld Ver 8.0.12 for linux-glibc2.12 on x86_64 (MySQL Community Server - GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Starts the MySQL database server.

Usage: mysqld [OPTIONS]

For more help options (several pages), use mysqld --verbose --help.
[root@test ~]# /usr/local/mysql/bin/mysqld --user=mysql
2018-08-05T08:32:12.994944Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2018-08-05T08:32:12.995087Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.12) starting as process 1593
2018-08-05T08:32:13.852900Z 0 [System] [MY-010229] [Server] Starting crash recovery...
2018-08-05T08:32:13.852975Z 0 [System] [MY-010232] [Server] Crash recovery finished.
2018-08-05T08:32:13.918109Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2018-08-05T08:32:14.165747Z 0 [System] [MY-010931] [Server] /usr/local/mysql/bin/mysqld: ready for connections. Version: '8.0.12' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server - GPL.

Please read "Security" section of the manual to find out how to run mysqld as root!错误解决 - CSDN博客 https://blog.csdn.net/jubincn/article/details/6725582

原文地址:https://www.cnblogs.com/rsapaper/p/9426200.html