已经通过 APT 存储库下载了 MySQL 存储库,然后已经执行了 sudo apt-get update
和 sudo apt-get install mysql-server
。但我收到以下错误:
asus@asus-K40IJ:~$ sudo mysqld
[sudo] password for asus:
2018-11-10T04:34:58.070075Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-11-10T04:34:58.074324Z 0 [Note] mysqld (mysqld 5.7.24) starting as process 3686 ...
2018-11-10T04:34:58.077869Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2018-11-10T04:34:58.077928Z 0 [ERROR] Aborting
2018-11-10T04:34:58.077959Z 0 [Note] Binlog end
2018-11-10T04:34:58.078047Z 0 [Note] mysqld: Shutdown complete
这是为什么以及如何解决这个......?
最佳答案
出于安全考虑,不建议以 root 身份运行“mysqld”。但是您可以使用“--user=root”选项来完成。 请参阅更多详细信息。 https://dev.mysql.com/doc/refman/8.0/en/security-against-attack.html
关于mysql - 无法在 Linux 中启动 MySQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53236041/