运用ShopEx网店程序的兄弟,可能会遇到后台页面报错的状况,如下: Warning: SELECT s.op_id,s.sess_data,o.name,o.username,o.super,o.status,o.disabled,o.config FROM sdb_op_sessions s left join sdb_operators o on o.op_id = s.op_id WHERE s.sess_id = 'b5e56ebe83d43b05d5cbee006ca00a0d' LIMIT 0, 1:Table '.\sqhuang518\sdb_op_sessions' is marked as crashed and should be repaired in D:\wwwroot\core\include_v5\AloneDB.phpon line 79 Warning: SELECT * FROM sdb_op_sessions WHERE sess_id='b5e56ebe83d43b05d5cbee006ca00a0d':Table '.\sqhuang518\sdb_op_sessions' is marked as crashed and should be repaired in D:\wwwroot\core\include_v5\AloneDB.phpon line 79 Fatal error: GetUpdateSQL: error in D:\wwwroot\core\include_v5\core\db.tools.phpon line 4 修正办法如下: 1、命令行进行修正 myisamchk -f 'C:\xxx\MySQL\MySQL Server 5.1\data\mysql\sdb_op_sessions.MYI' 或许 myisamchk -c -r 'C:\xxx\MySQL\MySQL Server 5.1\data\mysql\sdb_op_sessions.MYI' 注意要修正自个的途径,-f表明强行修正。 2、运用phpmyadmin进行修正 进入办理mysql的phpmyadmin, 在左则选中自个的数据库,在右则勾选中错误信息中的那个pre_ucenter_members表,翻滚屏幕到下面,有个下拉菜单(With selected:),挑选”Repair table”。这样就可以进行修正了! 3、运用其他东西,如:Navicat for MySQL 运用第三方的数据库修正东西进行修正数据库表,具体办法请参考有关软件的运用说明。 (责任编辑:最模板) |