在linux下用安装的mysql 总是启动不了。日志如下。。。这是杂回呈啊

cndeer 2013-08-29 12:45:02
[root@localhost log]# service mysqld start
MySQL Daemon failed to start. 
Starting mysqld: [失败]
 

我是看这里的教程http://help.dedecms.com/environment/2011/0614/73.html配置的。然后不行我就删了又重装的mysql

难道只能是重装linux系统了?

这是日志:
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
130829 11:55:43 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 44233
130829 11:55:43 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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
130829 11:55:44 InnoDB: Started; log sequence number 0 44233
130829 11:55:44 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
130829 11:55:44 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130829 12:03:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
130829 12:03:33 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130829 12:03:33 InnoDB: Initializing buffer pool, size = 8.0M
130829 12:03:33 InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
130829 12:03:33 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 44233
130829 12:03:33 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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
130829 12:03:33 InnoDB: Started; log sequence number 0 44233
130829 12:03:33 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
130829 12:03:33 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130829 12:10:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
130829 12:10:38 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130829 12:10:38 InnoDB: Initializing buffer pool, size = 8.0M
130829 12:10:38 InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
130829 12:10:38 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 44233
130829 12:10:38 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 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
130829 12:10:38 InnoDB: Started; log sequence number 0 44233
130829 12:10:38 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
130829 12:10:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130829 12:29:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
"/var/log/mysqld.log" 86L, 6476C
...全文
161 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ACMAIN_CHM 2013-08-29
  • 打赏
  • 举报
回复
检查一下 my.cfg文件中的datadir 指向的文件目录是否正确。
rucypli 2013-08-29
  • 打赏
  • 举报
回复
find / -name "my.cnf" -type f 找到后删掉 然后重启数据库
栗华山 2013-08-29
  • 打赏
  • 举报
回复
[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 这是根本原因,在data目录\mysql\缺少 host.frm host.MYD host.MYI 导致 到别的mysql安装目录下拷贝后就可以了吧?

56,677

社区成员

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

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