安装mysql后,使用mysqld_safe启动,错误如下:
[ROOT mysql]$ mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld
InnoDB: Log scan progressed past the checkpoint lsn 0 36808
100313 10:15:09 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
100313 10:15:09 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
100313 10:15:09 InnoDB: Started; log sequence number 0 43655
100313 10:15:09 [ERROR] mysqld: Can't create/write to file '/var/run/mysqld' (Errcode: 21)
100313 10:15:09 [ERROR] Can't start server: can't create PID file: Is a directory
[ROOT mysql]$ mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
InnoDB: Log scan progressed past the checkpoint lsn 0 36808
100313 10:16:23 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
100313 10:16:23 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
100313 10:16:23 InnoDB: Started; log sequence number 0 43655
100313 10:16:23 [ERROR] mysqld: Can't find file: './mysql/host.frm' (errno: 13)
100313 10:16:23 [ERROR] mysqld: Can't find file: './mysql/host.frm' (errno: 13)
100313 10:16:23 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
呵呵,可能是我太笨了,找了很多论坛,都是说都权限问题,但没找到解决方法,最后在find -iname '*host.frm*'里知道host.frm是在mysql的系统表里,进行系统表查看权限:
[ROOT mysql]$ ll
total 780
-rwxrwx--- 1 root root 8820 2010-03-13 09:20 columns_priv.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 columns_priv.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 columns_priv.MYI
-rwxrwx--- 1 root root 9494 2010-03-13 09:20 db.frm
-rwxrwx--- 1 root root 876 2010-03-13 09:20 db.MYD
-rwxrwx--- 1 root root 4096 2010-03-13 09:20 db.MYI
-rwxrwx--- 1 root root 8665 2010-03-13 09:20 func.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 func.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 func.MYI
-rwxrwx--- 1 root root 8700 2010-03-13 09:20 help_category.frm
-rwxrwx--- 1 root root 20916 2010-03-13 09:20 help_category.MYD
-rwxrwx--- 1 root root 3072 2010-03-13 09:20 help_category.MYI
-rwxrwx--- 1 root root 8612 2010-03-13 09:20 help_keyword.frm
-rwxrwx--- 1 root root 78997 2010-03-13 09:20 help_keyword.MYD
-rwxrwx--- 1 root root 14336 2010-03-13 09:20 help_keyword.MYI
-rwxrwx--- 1 root root 8630 2010-03-13 09:20 help_relation.frm
-rwxrwx--- 1 root root 7425 2010-03-13 09:20 help_relation.MYD
-rwxrwx--- 1 root root 16384 2010-03-13 09:20 help_relation.MYI
-rwxrwx--- 1 root root 8770 2010-03-13 09:20 help_topic.frm
-rwxrwx--- 1 root root 347064 2010-03-13 09:20 help_topic.MYD
-rwxrwx--- 1 root root 17408 2010-03-13 09:20 help_topic.MYI
-rwxrwx--- 1 root root 9416 2010-03-13 09:20 host.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 host.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 host.MYI
-rwxrwx--- 1 root root 9691 2010-03-13 09:20 proc.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 proc.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 proc.MYI
-rwxrwx--- 1 root root 8875 2010-03-13 09:20 procs_priv.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 procs_priv.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 procs_priv.MYI
-rwxrwx--- 1 root root 8947 2010-03-13 09:20 tables_priv.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 tables_priv.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 tables_priv.MYI
-rwxrwx--- 1 root root 8636 2010-03-13 09:20 time_zone.frm
-rwxrwx--- 1 root root 8624 2010-03-13 09:20 time_zone_leap_second.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 time_zone_leap_second.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 time_zone_leap_second.MYI
-rwxrwx--- 1 root root 0 2010-03-13 09:20 time_zone.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 time_zone.MYI
-rwxrwx--- 1 root root 8606 2010-03-13 09:20 time_zone_name.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 time_zone_name.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 time_zone_name.MYI
-rwxrwx--- 1 root root 8686 2010-03-13 09:20 time_zone_transition.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 time_zone_transition.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 time_zone_transition.MYI
-rwxrwx--- 1 root root 8748 2010-03-13 09:20 time_zone_transition_type.frm
-rwxrwx--- 1 root root 0 2010-03-13 09:20 time_zone_transition_type.MYD
-rwxrwx--- 1 root root 1024 2010-03-13 09:20 time_zone_transition_type.MYI
-rwxrwx--- 1 root root 10330 2010-03-13 09:20 user.frm
-rwxrwx--- 1 root root 224 2010-03-13 09:20 user.MYD
-rwxrwx--- 1 root root 2048 2010-03-13 09:20 user.MYI
晕,原来真是权限问题:
[ROOT mysql]$ chown mysql *
[ROOT mysql]$ chgrp mysql *
[ROOT mysql]$ chmod ug+rwx *
再重启mysql即可
分享到:
相关推荐
主要给大家介绍了关于在MySQL中报错:Can't find file: './mysql/plugin.frm'的解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧...
如果重启服务器前没有关闭mysql,MySql的MyiSAM表很有可能会出现 ERROR #1017 :Can't find file: '/xxx.frm' 的错误
解决方法:cd到xxx.frm文件所在目录下,执行一下命令:chown mysql.mysql * 将所有文件的权限都改过来就可以了! 您可能感兴趣的文章:MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)...
_storage_emulated_0_android_data_com.tencent.mm_MicroMsg_Download_FRM.Support0423_2510(Frame.2023).zip
您可能感兴趣的文章:mysql自动停止 Plugin FEDERATED is disabled 的完美解决方法MySQL部署时提示Table mysql.plugin doesn’t exist的解决方法MySQL中报错:Can’t find file: ‘./mysql/plugin.frm’的解决方法
MySqlFrm.exe是c#版本的frm转sql工具,需要.net 4.0与mysql环境,CMD命令行如下: mysqlfrm <username> <password> <port> 例如: mysqlfrm root pass 3306 c:\dbcopy 会将c:\dbcopy目录下所有的frm转换为...
参考使用方法:https://www.cnblogs.com/chinaops/p/9689616.html 整个恢复过程其实可以总结为下面几步: (1):恢复表结构 (2):复制出来创建表的sql语句 (3):恢复表数据(在恢复表数据的时候,首先需要解除当前...
转自网友的方法: 仅根据mysql的.frm文件恢复出表结构 1、使用到的工具 mysqlfrm 2、安装mysql-utilities-1.6.5-winx64.exe 和?vcredist_x64.exe 3、管理员权限打开cmd cd 进入 %mysql-utilities-HOME%/ 运行: ...
NULL 博文链接:https://lindows.iteye.com/blog/477579
主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面来一起看看吧。
VB 源码 :一个文件夹浏览窗口的源程序,整个界面同Windows下的资源管理器...Example.frm Example.vbp Example.vbw modDiskSpace.bas MSSCCPRJ.SCC regsvr32.lnk Test.vbg UsrDir.bmp usrDir.ctl usrDir.ctx UsrDir.jpg
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. ...
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. ...
资料是对mysql frm文件的解析,通过分析frm文件可以获取到数据库的表,字段名等信息。
Common\Graphics\bitmaps\tlbr_w95\find.bmp Common\Graphics\bitmaps\tlbr_w95\freeform.bmp Common\Graphics\bitmaps\tlbr_w95\front.bmp Common\Graphics\bitmaps\tlbr_w95\group.bmp Common\Graphics\bitmaps...
特别说明:视频教程里的域名不能用了,请以...18、修改app里面最新电影抢先看电影网站,修改地址:前端文件/html/v_mn_frm.html/将里面网址http://95la.cn/ 修改成你要的网址即可 后台默认账号:admin,密码:123456。
MySQl 通过.frm 和 .ibd文件恢复数据
临近年末,很多企事业单位都会赶工期上马一些信息化项目,而OA办公系统无疑是其中关注和采购的重点,那么如何选好OA办公系统呢?每个系统都有自己的优缺点,究竟该如何取舍呢?本文就为选型者提供一个实用的参考。