【SQL】Ucenter Home 点击消息 mysql Errno:1146
2014年07月25日 10:00:12 作者:Jiaozn 分类:MySQL 评论(0)在Ucenter Home 中 点击 消息 出现以下问题时解决方案:
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 'pre_ucenter_pms' doesn't exist #重点这里报错,没有pre_ucenter_pms这个表
Errno:1146
原因是因为数据库ucenter里没有pre_ucenter_pms表,需要新建这个表。进入到数据库中,把下面代码粘贴到SQL里运行,就好了。
DROP TABLE IF EXISTS pre_ucenter_pms; CREATE TABLE 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', PRIMARY KEY(pmid), KEY msgtoid(msgtoid,folder,dateline), KEY msgfromid(msgfromid,folder,dateline), KEY related (related), KEY getnum (msgtoid,folder,delstatus) ) TYPE=MyISAM;
除非注明,发表在“Jiaozn的博客”的文章『【SQL】Ucenter Home 点击消息 mysql Errno:1146』版权归Jiaozn所有。
转载请注明出处为“本文转载于『Jiaozn的博客』原地址https://jiaozn.com/reed/16.html”
评论
发表评论