mysql - 无法在 Linux 中启动 MySQL

标签 mysql ubuntu

已经通过 APT 存储库下载了 MySQL 存储库,然后已经执行了 sudo apt-get updatesudo 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/

相关文章:

python - 如何将文本文件的信息放入元组中以转换为 SQL 表?

python - Ubuntu 10.10 上默认通过 MySQLdb Python 库访问 XAMPP

swift - vapor:地址已在使用中(错误号:98)

Ubuntu 无法执行没有这样的文件或目录

MySQL查询平均值

php - 使用 php 和 mysql 从表中获取所有用户

mysql - Moodle 上不区分大小写的搜索

php - 不会从 php 中的 View 执行 mysql 语句

ubuntu - 使用 curl 测试 Bottle api

ubuntu - x86 程序集 jl 不起作用