由于服务器断电,重启后,dz7论坛发贴与回贴就出现以下错误代码:
Discuz! info: MySQL Query Error
User: ruirui
Time: 2008-5-31 12:52am
Script: /bbs/post.php
SQL: INSERT INTO [Table]posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, anonymous, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)
VALUES ('48', '2548', '0', 'ruirui', '14167', '', '1212166345', '我也来看看了 呵呵', '219.232.224.111', '0', '0', '0', '0', '-1', '-1', '', '0')
Error: Table '[Table]posts' is read only
Errno.: 1036
Similar error report has beed dispatched to administrator before
解决方法之一:
到Dz官方论坛下载“Discuz! 系统维护工具箱-Tools 2009贺岁版”,执行“检查或修复数据库”功能就可解决!
http://www.discuz.net/thread-1152819-1-1.html
解决方法之二:
一般是因为数据表文件损害导致,可用MySQL的修复工具myisamchk 工具修复。
cmd
myisamchk cdb_posts.myi -r
修复数据表就OK了! |
|