宝塔51特惠活动,企业版1099元/年,送SSL证书,最高立减2万元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【已完成】阿里云的服务器重启之后,宝塔安装的mysql无法...

发表在 Linux面板2024-3-14 11:36 [复制链接] 6 1597

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:宝塔版本8.0.5,  mysql版本8.0.36
系统版本:CentOS Stream 9 64位 4核16g
问题描述:在阿里云控制台重启服务器之后,宝塔面板重启之后mysql不会自动重启
相关截图(日志、错误):

a964d900f24c2ba5ea8bf3a742be608.png


使用道具 举报 只看该作者 回复
发表于 2024-3-14 11:37:07 | 显示全部楼层
自检了一下没有问题 下载.png
使用道具 举报 回复 支持 反对
发表于 2024-3-14 11:37:39 | 显示全部楼层
重启之后查看错误日志
2024-03-14T02:15:43.825182Z 8 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:15:43.832955Z 9 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:15:51.068528Z 10 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:14.642404Z 11 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:16.915376Z 12 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:16.921462Z 13 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:17.530089Z 14 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:20.441761Z 15 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:16:20.447588Z 16 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2024-03-14T02:21:25.172527Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting down mysqld (Version: 8.0.36).
2024-03-14T02:21:26.390044Z 0 [System] [MY-010910] [Server] /www/server/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.36)  Source distribution.
使用道具 举报 回复 支持 反对
发表于 2024-3-14 14:25:47 | 显示全部楼层
目前所知CentOS Stream 9启动管理方式不一样,是有可能导致部分服务没有办法自启动
可以自行尝试加入systemd管理器管理自启动
然后提供的日志,只是一个警告,不算错误信息,如果手动启动成功可以忽略
使用道具 举报 回复 支持 反对
发表于 2024-3-14 15:03:36 | 显示全部楼层
阿珂 发表于 2024-3-14 14:25
目前所知CentOS Stream 9启动管理方式不一样,是有可能导致部分服务没有办法自启动
可以自行尝试加入system ...

手动可以启动成功,就是每次重启服务器之后mysql不能自动重启
使用道具 举报 回复 支持 反对
发表于 2024-3-14 15:18:33 | 显示全部楼层
你可以自己写给脚本,然后通过systemd管理自启动
使用道具 举报 回复 支持 反对
发表于 2024-3-14 15:27:05 | 显示全部楼层
阿珂 发表于 2024-3-14 15:18
你可以自己写给脚本,然后通过systemd管理自启动

利用宝塔里的定时任务,新建一个shell脚本,每分钟检测执行一次是不是也可以?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析
快速回复 返回顶部 返回列表