Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1975883
  • 博文数量: 176
  • 博客积分: 1857
  • 博客等级: 上尉
  • 技术积分: 2729
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-14 22:55
个人简介

吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.

文章分类

全部博文(176)

文章存档

2019年(1)

2018年(14)

2017年(20)

2016年(31)

2015年(15)

2014年(5)

2013年(10)

2012年(80)

分类: Mysql/postgreSQL

2012-07-04 17:03:47

再一次做mysql测试的时候,启动mysql,碰到了

[ERROR] /usr/local/mysql55/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)

查看err日志:

***************整理后的片段****************
120704 12:58:37 [ERROR] /usr/local/mysql55/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120704 12:58:37 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
120704 12:59:33 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql55/bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120704 12:59:33 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
120704 12:59:33  InnoDB: Error: trying to open a table, but could not
InnoDB: open the tablespace file './zsd/t1.ibd'!
120704 12:59:34 [ERROR] /usr/local/mysql55/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120704 12:59:34 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
120704 12:59:34 mysqld_safe mysqld from pid file /data/mysqldata/3306/mysql.pid ended
***************整理后的片段****************

红字明确了最重要的片段。当然,120704代表的是当天日期,要分析的时候,可以grep当天日期,查看err日志。

由于我之前做了数据目录的cp

只要对数据的权限做一些更改
[root@localhost 3306]# chown mysql:mysql ./*

重新启动mysql服务,即可

阅读(6459) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~