安装后我无法启动mysql

时间:2021-02-21 21:48:28

标签: mysql nginx

我在 Debian 10 Buster 上安装了 580mb 内存。

当我尝试启动 mysql 时:brunnovert98@vegaz-server:~$ sudo systemctl enable --now mysql.service Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.

brunnovert98@vegaz-server:~$ sudo systemctl status mysql.service

● mysql.service - MySQL 社区服务器 已加载:已加载(/lib/systemd/system/mysql.service;已启用;供应商预设:已启用) 活动:失败(结果:退出代码)自星期日 2021-02-21 21:46:08 UTC; 27 秒前 文档:man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html 进程:634 ExecStartPre=/usr/share/mysql-8.0/mysql-systemd-start pre (code=exited, status=0/SUCCESS) 进程:669 ExecStart=/usr/sbin/mysqld(代码=退出,状态=1/FAILURE) 主PID:669(代码=退出,状态=1/FAILURE) 状态:“服务器正在启动”

Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.189699Z 0 [ERROR] [MY-012681] [InnoDB] mmap(136970240 bytes) failed; errno 12
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.190273Z 1 [ERROR] [MY-012956] [InnoDB] Cannot allocate memory for the buffer pool
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.190359Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.190451Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.190654Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.190793Z 0 [ERROR] [MY-010119] [Server] Aborting
Feb 21 21:46:08 vegaz-server mysqld[669]: 2021-02-21T21:46:08.191381Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23)  MySQL Community Server - GPL.
Feb 21 21:46:08 vegaz-server systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Feb 21 21:46:08 vegaz-server systemd[1]: mysql.service: Failed with result 'exit-code'.
Feb 21 21:46:08 vegaz-server systemd[1]: Failed to start MySQL Community Server.

你能帮我吗?我在这里找不到解决方案

非常感谢!

0 个答案:

没有答案