mysql服务无法重新启动

q3qa4bjr  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(527)

我试着用 sudo /etc/init.d/mysql start ,以及使用 sudo restart mysql 以及 sudo /etc/init.d/mysql restart 但什么也没发生。当我尝试这些类型的命令时,apache和php都很好,但是mysql总是有问题,我不明白。它工作了一段时间,然后就关闭了。
如果我重新安装它的所有软件包,它可以工作,但我不想经常处理它。
使用 systemctl status mysql.service 我得到:

mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor 
preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-07-12 16:06:18 CEST; 
7min ago
Process: 9231 ExecStart=/usr/sbin/mysqld --daemonize --pid- 
file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Process: 9222 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre 
(code=exited, status=0/SUCCESS)

有人能帮我吗?我是新来的。我有ubuntu 18.04。

x7rlezfr

x7rlezfr1#


## Edit /etc/my.cnf, and add the following line under the

[mysqld] heading.
[mysqld]
innodb_buffer_pool_size=64M
Then restart: $ service mysql restart

https://www.digitalocean.com/community/questions/mysql-on-ubuntu-keeps-crashing

相关问题