截图解释了一切,首先我尝试启动它,而不会,所以我检查状态,然后检查日志。



在遵循了我在StackExchange周围创build的许多以前的build议之后,my.cnf的内容是:
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need to run mysqld under a different user or group, # customize your systemd unit file for mariadb according to the # instructions in http://fedoraproject.org/wiki/Systemd performance_schema=off innodb_buffer_pool_size=64MB innodb_purge_threads=0 [mysqld_safe] log-error=/var/log/mariadb/mariadb.log pid-file=/var/run/mariadb/mariadb.pid # # include all files from the config directory # !includedir /etc/my.cnf.d
使用innodb_buffer_pool_size的较小值更改您的configuration文件。
例如,使用innodb_buffer_pool_size = 8M
这篇文章可能会帮助你。 基本上,你的内存不足了。 尝试降低max_connectionvariables和其他参数。
https://dba.stackexchange.com/questions/1927/why-does-mysql-say-im-out-of-memory