- 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 's493508db0.pre_ucenter_pms' doesn't exist
- Errno:1146
复制代码
(备注:注意后面的数字1146)
解决办法“主要是因为缺少pre_ucenter_pms这个表导入即可!
- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8 */;
- --
- -- 数据库: `00313db0`
- --
- -- --------------------------------------------------------
- --
- -- 表的结构 `pre_ucenter_pms`
- --
- CREATE TABLE IF NOT EXISTS `pre_ucenter_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`),
- KEY `related` (`related`),
- KEY `getnum` (`msgtoid`,`folder`,`delstatus`)
- ) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=276 ;
- --
复制代码
数据库名字改成你自己的就可以了~
|