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 咨询一下有关于王者荣耀赢藏战绩
  • ¥100 求购一套带接口实现实习自动签到打卡
  • ¥50 MacOS 使用虚拟机安装k8s
  • ¥500 亚马逊 COOKIE我如何才能实现 登录一个亚马逊账户 下发新 COOKIE ..我使用下发新COOKIE 导入ADS 指纹浏览器登录,我把账户密码 修改过后,原来下发新COOKIE 不会失效的方式
  • ¥20 玩游戏gpu和cpu利用率特别低,玩游戏卡顿
  • ¥25 oracle中的正则匹配
  • ¥15 关于#vscode#的问题:把软件卸载不会再出现蓝屏
  • ¥15 vimplus出现的错误
  • ¥15 usb无线网卡转typec口
  • ¥30 怎么使用AVL fire ESE软件自带的优化模式来优化设计Soot和NOx?