[root@iZ25b6alxstZ ~]# systemctl start mariadb

Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

[root@iZ25b6alxstZ ~]# systemctl status mariadb

● mariadb.service - MariaDB database server
    Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Thu 2017-11-30 15:02:35 CST; 4min 10s ago
   Process: 14055 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/F
   Process: 14054 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
   Process: 14024 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCC
  Main PID: 14054 (code=exited, status=0/SUCCESS)

Nov 30 15:02:34 iZ25b6alxstZ systemd[1]: Starting MariaDB database server...

Nov 30 15:02:34 iZ25b6alxstZ mariadb-prepare-db-dir[14024]: Database MariaDB is probably initial /var/lib/mysql already, nothing is done.

Nov 30 15:02:34 iZ25b6alxstZ mysqld_safe[14054]: 171130 15:02:34 mysqld_safe Logging to '/var/lodb/mariadb.log'.

Nov 30 15:02:34 iZ25b6alxstZ mysqld_safe[14054]: 171130 15:02:34 mysqld_safe Starting mysqld daeh databases from /var/lib/mysql

Nov 30 15:02:35 iZ25b6alxstZ systemd[1]: mariadb.service: control process exited, code=exited st

Nov 30 15:02:35 iZ25b6alxstZ systemd[1]: Failed to start MariaDB database server.

Nov 30 15:02:35 iZ25b6alxstZ systemd[1]: Unit mariadb.service entered failed state.

Nov 30 15:02:35 iZ25b6alxstZ systemd[1]: mariadb.service failed.

mysql的报错日志如下:

[root@iZ25b6alxstZ ~]# grep 'ERROR' /var/log/mariadb/mariadb.log

171129 11:38:27 [ERROR] Plugin 'InnoDB' init function returned error.

171129 11:38:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

171129 11:38:27 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)

171129 11:38:27 [ERROR] mysqld: Out of memory (Needed 96681984 bytes)

171129 11:38:27 [ERROR] Unknown/unsupported storage engine: InnoDB

171129 11:38:27 [ERROR] Aborting

根据报错信息,感觉应该是内存不够了,重启了下机器好了

[root@iZ25b6alxstZ ~]# systemctl status mariadb

● mariadb.service - MariaDB database server
    Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
    Active: active (running) since Thu 2017-11-30 15:11:45 CST; 42s ago
   Process: 1218 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
   Process: 1187 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
  Main PID: 1217 (mysqld_safe)
    CGroup: /system.slice/mariadb.service
            ├─1217 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
            └─1380 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql...

Nov 30 15:11:42 iZ25b6alxstZ systemd[1]: Starting MariaDB database server...

Nov 30 15:11:42 iZ25b6alxstZ mariadb-prepare-db-dir[1187]: Database MariaDB i...

Nov 30 15:11:42 iZ25b6alxstZ mysqld_safe[1217]: 171130 15:11:42 mysqld_safe ....

Nov 30 15:11:42 iZ25b6alxstZ mysqld_safe[1217]: 171130 15:11:42 mysqld_safe ...l

Nov 30 15:11:45 iZ25b6alxstZ systemd[1]: Started MariaDB database server.

Hint: Some lines were ellipsized, use -l to show in full.

CentOS 7.4安装mariadb,启动报错的更多相关文章

  1. Linux安装ElasticSearch启动报错的解决方法

    Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error det ...

  2. MySQL5.7.26安装及启动报错解决

    一.安装依赖包 [root@db01 ~]# yum install -y lrzsz [文件上传/下载] [root@db01 ~]# yum -y install xfsprogs [安装磁盘格式 ...

  3. ubuntu 下安装 mysql 启动报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    环境: ubuntu LTS 18.04.1 mysql Ver 14.14 Distrib 5.7.29, for Linux (x86_64) 初探 linux,按照如下安装完mysql sudo ...

  4. keepalived yum安装后启动报错解决

    [root@centos8 ~]yum install keepalived -y [root@centos8 ~]systemctl start keepalived.services [root@ ...

  5. mariadb启动报错:[ERROR] Can't start server : Bind on unix socket: Permission denied

    今天mariadb总是启动不了,对于我来说是不能忍受的.然后前往日志文件查看报错信息,提示如下: 出错信息一共就这三行,没有报其他的错误.那只能从红色方框的地方开始入手了. 首先是百度去搜索原因是什么 ...

  6. Linux下安装Tomcat启动报错

    一.报以下错误: Using CATALINA_BASE:   /home/apache-tomcat-7.0.72Using CATALINA_HOME:   /home/apache-tomcat ...

  7. pyspider安装完启动报错【connect to scheduler rpc error: error(111, 'Connection refused')】

    调研爬虫框架pyspider有一段时间了,感觉已经比较成熟,跟老板申请了一台机器,打算搭一套正式环境.然而在熟悉的安装步骤过后,启动画面却是这样的: 虽然心中有疑惑,但还是熟练的百度起来.一番搜索之后 ...

  8. docker安装后启动报错

    docker安装后启动不起来: 查看日志  /var/log/message    其中有一行为:  Your kernel does not support cgroup memory limit ...

  9. centos安装eclise启动报错

    A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail http://blog.csdn.net/u0 ...

  10. cm5.9.2安装spark启动报错解决办法

    [root@db02 scala-2.11.5]# spark-shell Setting default log level to "WARN". To adjust loggi ...

随机推荐

  1. nlp_tool

    http://www.afenxi.com/post/9700 11款开放中文分词引擎大比拼 附录评测数据地址http://bosonnlp.com/dev/resource 各家分词系统链接地址Bo ...

  2. redis08----集群

    集群的作用: .主从备份,防止主机宕机 .读写分离,主服务器写,从服务器内容跟着主服务器,主服务器变他就变,读就从从服务器读.减轻主服务器的负担. .任务分离,比如消耗cpu和内存的操作,交给从服务器 ...

  3. java 获取路径

    1.利用System.getProperty()函数获取当前路径:System.out.println(System.getProperty("user.dir"));//user ...

  4. 大O符号

    大O 就是 时间复杂度.时间复杂度是大概的描述一个算法的用时(实际上从侧面的表达了他的效率) 最好时间复杂度,通常指在最好情形下,这个算法用时.反之,最坏情况下的就是最坏时间复杂度.通常 冒泡算法 的 ...

  5. Configuring Your EMS Server or EMS Console Server on Windows/Linux

    EMS Configuration Files RAD Studio provides the scripts to render the web-browser console, the EMS s ...

  6. codeforces 451C. Predict Outcome of the Game 解题报告

    题目链接:http://codeforces.com/problemset/problem/451/C 题目意思:有3支球队(假设编号为1.2.3),总共要打 n 场比赛,已知已经错过这n场比赛中的 ...

  7. Mysql语句示例

    Mysql语句示例 最常用 sql 语句总结 前言 Mysql 是数据库开发使用的主要平台之一.sql 的学习掌握与使用是数据库开发的基础,此处展示详细sql 语句的写法,及各种功能下的 sql 语句 ...

  8. opencv直方图该怎么画

    图像直方图是反映图像中像素分布特性的统计表,一般显示如下: 其中横坐标代表的是图像像素的种类,或者说是灰度级,纵坐标代表的是每一级灰度下像素数或者该灰度级下像素数在所有图像总像素数总所占的百分比. 直 ...

  9. Centos Missing Library: QtWebKit.so.4

    /******************************************************************** * Centos Missing Library: QtWe ...

  10. BZOJ_1713_[Usaco2007 China]The Bovine Accordion and Banjo Orchestra 音乐会_斜率优化

    BZOJ_1713_[Usaco2007 China]The Bovine Accordion and Banjo Orchestra 音乐会_斜率优化 Description Input 第1行输入 ...