我在网上找到的,论坛里也有说的,但是我不会弄,你试试看。
彻底解决UChome里面消息错误问题
时间:2012-03-17 17:30来源:找挨踢 作者:找挨踢 点击: 286 次
很多站长可能碰见过这样的问题,当打开UChome消息页面出现如下错误 UCenter info: MySQL Query Error SQL: SELECT count(*) FROM [Table]pms WHERE msgtoid=1 AND related=0 AND msgfromid0 AND folder=inbox Error: Table abc.uc_pms doesnt exist Errno: 1
很多站长可能碰见过这样的问题,当打开UChome消息页面出现如下错误
“UCenter info: MySQL Query Error
SQL:SELECT count(*) FROM [Table]pms WHERE msgtoid='1' AND related='0' AND msgfromid>'0' AND folder='inbox'
Error:Table 'abc.uc_pms' doesn't exist
Errno:1146”
下面我们就来彻底解决这个问题 首先进入phpmyadmin 在sql执行里面执行如下语句,彻底解决问题就这么简单!
CREATE TABLE IF NOT EXISTS `uc_pms` (
`pmid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`msgfrom` varchar(15) NOT NULL DEFAULT '',
`msgfromid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`msgtoid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`folder` enum('inbox','outbox') NOT NULL DEFAULT 'inbox',
`new` tinyint(1) NOT NULL DEFAULT '0',
`subject` varchar(75) NOT NULL DEFAULT '',
`dateline` int(10) unsigned NOT NULL DEFAULT '0',
`message` text NOT NULL,
`delstatus` tinyint(1) unsigned NOT NULL DEFAULT '0',
`related` int(10) unsigned NOT NULL DEFAULT '0',
`fromappid` smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`pmid`),
KEY `msgtoid` (`msgtoid`,`folder`,`dateline`),
KEY `msgfromid` (`msgfromid`,`folder`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
在phpmyadmin中运行以上语句,执行即可解决消息错误! |