MySQL数据库源文件迁移

[Entrypoint] MySQL Docker Image 8.0.32-1.2.11-server
[Entrypoint] Starting MySQL 8.0.32-1.2.11-server
2025-12-16T09:48:50.099332Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2025-12-16T09:48:50.102626Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32) starting as process 1
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2025-12-16T09:48:50.108475Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-12-16T09:48:50.108651Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.

data目录迁移会涉及权限问题,设置一下就好了

sudo chown -R 27:27 /data
赞(0) 打赏
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《MySQL数据库源文件迁移》
文章链接:https://blog.78cat.cn/5207.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

觉得文章有用就打赏一下文章作者

感谢您的支持,我将持续输出干货满满的内容

支付宝扫一扫

微信扫一扫