首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Linux中启动MySQL

问无法在Linux中启动MySQL
EN

Stack Overflow用户
提问于 2018-11-10 12:40:26
回答 1查看 1.7K关注 0票数 1

我通过APT存储库下载了MySQL存储库,然后已经下载了sudo apt-get update和sudo apt-get install mysql-server。但我得到的错误如下:

代码语言:javascript
复制
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

为什么会这样,如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2018-11-12 01:17:18

出于安全考虑,不建议以根用户身份运行'mysqld‘。但您可以使用'--user=root‘选项来完成此操作。有关详细信息,请参阅。https://dev.mysql.com/doc/refman/8.0/en/security-against-attack.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53236041

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档