mysql 数据文件恢复

dukang2004 2013-10-11 07:54:45
数据文件从另外一台机器复制过来 ,结果搞半天 怎么都启动不了

失败日志
131011 06:38:50 mysqld started
131011 6:38:51 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.
131011 06:38:51 mysqld ended

数据文件

-rw-rw-rw- 1 mysql mysql 30821842944 Oct 9 16:10 ibdata1
-rw-rw-rw- 1 mysql mysql 5242880 Oct 9 16:16 ib_logfile0
-rw-rw-rw- 1 mysql mysql 5242880 Oct 9 16:16 ib_logfile1
drwx------ 2 mysql mysql 4096 Sep 26 12:14 mysql
drwx------ 2 mysql mysql 4096 Sep 26 12:23 supermail
drwx------ 2 mysql mysql 4096 Sep 26 12:14 test
drwx------ 2 mysql mysql 4096 Sep 26 16:46 worldsite

哪位大侠帮我看下这个问题怎么解决? 感激不已!
...全文
172 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ACMAIN_CHM 2013-10-11
  • 打赏
  • 举报
回复
权限问题。......
dukang2004 2013-10-11
  • 打赏
  • 举报
回复
引用 4 楼 iihero 的回复:
Redhat上边出的问题? 安全设置。 The error means mysqld does not have the access rights to InnoDB: the directory. 不错.....
centos 跟 redhat差不多
iihero_ 2013-10-11
  • 打赏
  • 举报
回复
Redhat上边出的问题? 安全设置。 The error means mysqld does not have the access rights to InnoDB: the directory. 不错.....
rucypli 2013-10-11
  • 打赏
  • 举报
回复
wwwwb 2013-10-11
  • 打赏
  • 举报
回复
自己解决更好,学习
dukang2004 2013-10-11
  • 打赏
  • 举报
回复
自己解决了,把解决方案也贴出来,供以后碰到这种问题的兄弟使用 修改/etc/selinux/config SELINUX=disabled 重启系统或执行: setenforce 0

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧