XADB 2022-11-08 23:52 采纳率: 33.3%
浏览 60
已结题

请问centos7.6启动mariadb服务失败了要怎么办?

日志如下
221109 10:24:10 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb pid ended
221109 10:24:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
221109 10:24:11 [Note] /usr/libexec/mysqld (mysqld 5 5 68-MariaDB) starting as process 7158
221109 10:24:11 InnoDB: The InnoDB memory heap is disabled
221109 10:24:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
221109 10:24:11 InnoDB: Compressed tables use zlib 1 2 7
221109 10:24:11 InnoDB: Using Linux native AIO
221109 10:24:11 InnoDB: Initializing buffer pool, size = 128 0M
221109 10:24:11 InnoDB: Completed initialization of buffer pool
221109 10:24:11 InnoDB: highest supported file format is Barracuda
221109 10:24:11 InnoDB: Waiting for the background threads to start
221109 10:24:12 Percona XtraDB (http://www percona com) 5 5 61-MariaDB-38 13 started; log sequence number 1597945
221109 10:24:12 [Note] Plugin 'FEEDBACK' is disabled
221109 10:24:12 [Note] Server socket created on IP: '0 0 0 0'
221109 10:24:12 [Note] Event Scheduler: Loaded 0 events
221109 10:24:12 [Note] /usr/libexec/mysqld: ready for connections
Version: '5 5 68-MariaDB' socket: '/var/lib/mysql/mysql sock' port: 3306 MariaDB Server
221109 10:32:30 [Note] /usr/libexec/mysqld: Normal shutdown
221109 10:32:30 [Note] Event Scheduler: Purging the queue 0 events
221109 10:32:30 InnoDB: Starting shutdown
221109 10:32:31 InnoDB: Shutdown completed; log sequence number 1597945
221109 10:32:31 [Note] /usr/libexec/mysqld: Shutdown complete

221109 10:32:31 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb pid ended
221109 10:32:32 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
221109 10:32:32 [Note] /usr/libexec/mysqld (mysqld 5 5 68-MariaDB) starting as process 16729
221109 10:32:32 InnoDB: The InnoDB memory heap is disabled
221109 10:32:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
221109 10:32:32 InnoDB: Compressed tables use zlib 1 2 7
221109 10:32:32 InnoDB: Using Linux native AIO
221109 10:32:32 InnoDB: Initializing buffer pool, size = 128 0M
221109 10:32:32 InnoDB: Completed initialization of buffer pool
221109 10:32:32 InnoDB: Operating system error number 13 in a file operation
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory
InnoDB: File name /ibdata1
InnoDB: File operation call: 'open'
InnoDB: Cannot continue operation
221109 10:32:32 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb pid ended
221109 10:35:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
221109 10:35:24 [Note] /usr/libexec/mysqld (mysqld 5 5 68-MariaDB) starting as process 2633
221109 10:35:24 InnoDB: The InnoDB memory heap is disabled
221109 10:35:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
221109 10:35:24 InnoDB: Compressed tables use zlib 1 2 7
221109 10:35:24 InnoDB: Using Linux native AIO
221109 10:35:25 InnoDB: Initializing buffer pool, size = 128 0M
221109 10:35:25 InnoDB: Completed initialization of buffer pool
221109 10:35:25 InnoDB: Operating system error number 13 in a file operation
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory
InnoDB: File name /ibdata1
InnoDB: File operation call: 'open'
InnoDB: Cannot continue operation
221109 10:35:25 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb pid ended

  • 写回答

2条回答 默认 最新

  • 晚风_END 云原生领域优质创作者 2022-11-09 01:09
    关注

    httpd启动失败是文件权限的问题,好像一个日志文件打不开。mariadb没有相关日志,无法判断。不过大胆推测和httpd的原因差不多,是你把整个目录的权限搞乱了。
    这个解决方法比较简单,应该都是yum安装的,先卸载了在安装一次即可。相关命令如下:

    yum remove mariadb-server httpd  #卸载命令 。
    yum install mariadb-server httpd -y  #两个服务重新安装命令,mariadb安装完毕后需要重新初始化,httpd基本开箱即用。
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月17日
  • 已采纳回答 11月9日
  • 修改了问题 11月9日
  • 修改了问题 11月9日
  • 展开全部

悬赏问题

  • ¥15 QTableWidget重绘程序崩溃
  • ¥15 51寻迹小车定点寻迹
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
  • ¥15 麒麟V10桌面版SP1如何配置bonding