WordPress出现错误时,可以通过 debug 参数调试:
根据Wp-config.php的调试功能排错
1、在 wp-config.php 有个 debug 的参数,打开这个参数,修改为:
define(‘WP_DEBUG’, ‘true’);
2、根据报错提示解决问题,比如以下错误:
WordPress database error: [Table './xiaoyijian_com/wp_options' is marked as crashed and should be repaired]
SELECT autoload FROM wp_options WHERE option_name = ‘_transient_doing_cron’
WordPress database error: [Table './xiaoyijian_com/wp_options' is marked as crashed and should be repaired]
SELECT autoload FROM wp_options WHERE option_name = ‘_transient_timeout_doing_cron’
WordPress database error: [Table './xiaoyijian_com/wp_options' is marked as crashed and should be repaired]
SELECT option_ FROM wp_options WHERE option_name = ‘_transient_doing_cron’ LIMIT 1
wp_options 表坏了,需要被修复,使用 mysql 客户端。
进 mysql 使用修复的命令修复:
mysql>repair table wp_options;
也可以通过phpMyAdmin来进行修复。
3、问题解决,关掉 DEBUG。
根据mysql的日志记录排错
在mysql的log日志文件
mysql/data/
里面找到一个.err结尾的文件,打开。看见了一排
‘.\xiaoyijian_com\wp_options’ is marked as crashed and should be repaired
‘.\xiaoyijian_com\wp_options’ is marked as crashed and should be repaired
‘.\xiaoyijian_com\wp_options’ is marked as crashed and should be repaired
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net bit.ly/2EzoUDo bit.ly/2tW6eYT bit.ly/2X6vadl bit.ly/2viLpHU linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com v.gd/2P9wTx v.gd/FtfpqE v.gd/eMfHsm v.gd/Ub7mqv v.gd/RReVk0 v.gd/vS3uTI v.gd/4Zxmba
Total Pageviews
Saturday, 26 November 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment