MySQL的坑 Can't find file: './mysql/plugin.frm' 问题
来源:互联网 发布:开个淘宝店 编辑:程序博客网 时间:2024/06/17 22:22
MySQL的磁盘满了,将数据库目录data移动到/data3目录,/etc/my.cnf里面也修改了相应的datadir目录,权限也赋予了,但是service mysql start;的时候报错,error log显示如下:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
去先检查plugin.frm权限,发现有权限,也是mysql属主:
- 1
- 2
- 3
- 4
- 5
google之后发现,原来问题在os这里,ubatu的mysql通过yum安装或者rpm安装的时候,会建一个/etc/apparmor.d/usr.sbin.mysqld 文件,如果数据目录不在这里面,则会报错,
/usr/sbin/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 - Permission denied)
所以解决办法是在里面加上新的datadir目录。
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
然后重启mysql实例,ok,问题解决。
阅读全文
0 0
- MySQL的坑 Can't find file: './mysql/plugin.frm' 问题
- MySQL的坑 Can't find file: './mysql/plugin.frm' 问题
- Can't find file: './mysql/plugin.frm'
- Can’t find file mysql/host.frm
- Can't find file: './mysql/plugin.frm' (errno: 13)[mysql数据目录迁移错位]错误解决
- 启动mysql报错Can't find file: './mysql/plugin.frm'
- /usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
- mysql Can't find file: './mysql/host.frm'
- Can't find file: './mysql/plugin.frm' (errno: 13)[mysql数据目录迁移错位]错误解决
- mysql ERROR 1017 :Can't find file: '/xxx.frm'...错误的解决方法
- Mysql ERROR 1017 (HY000): Can't find file: './db/table.frm' (errno: 13)
- MySQL Can't create/write to file 问题的解决
- MySQL Can't create/write to file 问题的解决
- mysql Can't open file: 'xx.frm' (errno: 24) 报错
- 在CentOS6.5中安装MySQL及遇到的问题Can't open the mysql.plugin table.
- Can't find file: './performance_schema/cond_instances.frm' (errno: 13 - Permission denied)
- 遇到Can\'t find file : \'./mc2db/job_list.frm\' <errno: 13>错误
- 错误代码: 1017 Can't find file: '.\bus\t_driver_info@ff1b.frm' (errno: 22 - Invalid argument)
- 微信浏览器不支持on('click',function (){})的一种特殊情况
- 【菜鸟笔记】关于使用SecureCRT访问Linux服务器项目部署
- spring源码分析,重新认识spring三(总结,总结下 ioc 和 aop,同时提出疑惑)
- 2 基数与选择性--优化主题系列
- Slice
- MySQL的坑 Can't find file: './mysql/plugin.frm' 问题
- OSS 视频或图片上传
- UVa12716
- 如何在服务层获取简单账表数据结果
- deb包的制作
- 在Eclipse中配置Maven插件
- ThoughtWorks2017(体育馆)
- ArcGIS 在地图上添加标注
- linux 同步时间