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

请问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日
  • 展开全部

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效