• Yourphp系统发生错误


    今天早用YP更新缓存,弹出如下错误:

    随之而来的是错误信息是:

    1. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Driver\Db\DbMysql.class.php (320) trace(Table 'xmesmweb.yb_index' doesn't exist  
    2. [ SQL语句 ] : SHOW COLUMNS FROM `yb_index`, , ERR)  
    3. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()  
    4. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Driver\Db\DbMysql.class.php (215) DbMysql->query(SHOW COLUMNS FROM `yb_index`)  
    5. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\Model.class.php (135) DbMysql->getFields(yb_index)  
    6. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\Model.class.php (123) Model->flush()  
    7. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\Model.class.php (1156) Model->_checkTableInfo()  
    8. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\Model.class.php (98) Model->db(0, )  
    9. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Common\common.php (276) Model->__construct(Index, , )  
    10. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\gznet\Lib\Action\BaseAction.class.php (248) M(Index)  
    11. [14-12-03 10:48:12] () BaseAction->show(7, )  
    12. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\App.class.php (180) ReflectionMethod->invokeArgs(, Array)  
    13. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\App.class.php (218) App::exec()  
    14. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Lib\Core\Think.class.php (39) App::run()  
    15. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Common\runtime.php (253) Think::start()  
    16. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\Core\Core.php (30) require(E:\wwwweb\xmwszt360\Core\Common\runtime.php)  
    17. [14-12-03 10:48:12] E:\wwwweb\xmwszt360\index.php (16) require(E:\wwwweb\xmwszt360\Core\Core.php)  

    那么问题出在哪儿呢,
    1. trace(Table 'xmesmweb.yb_index' doesn't exist  

    名为:yb_index的表未创建,那就是创建表!找一个全部都创建的空数据库一个个的导出sql语句,再添加就好了!实际开发中可能遇到的并非这个,我遇到的是dbsoource表未创建:


    1. CREATE TABLE IF NOT EXISTS `s_dbsource` (  
    2.   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
    3.   `name` varchar(50) NOT NULL DEFAULT '',  
    4.   `host` varchar(20) NOT NULL DEFAULT '',  
    5.   `port` int(5) unsigned NOT NULL DEFAULT '3306',  
    6.   `username` varchar(50) NOT NULL DEFAULT '',  
    7.   `password` varchar(50) NOT NULL DEFAULT '',  
    8.   `dbname` varchar(50) NOT NULL DEFAULT '',  
    9.   `dbtablepre` varchar(30) NOT NULL DEFAULT '',  
    10.   PRIMARY KEY (`id`)  
    11. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;  

     感谢浪子!
  • 相关阅读:
    Spring Boot从入门到精通(一)搭建第一个Spring Boot程序
    程序员未来的出路究竟在哪里?一位老码农的心声
    ​IntelliJ IDEA使用技巧—使用EasyCode插件一键生成代码04期
    浅谈Java后端开发工程师腾讯面试经历分享总结
    Java面试技巧—如何自我介绍
    互联网大厂Java面试题集—Spring boot常见面试题(二)
    互联网大厂Java面试题集—Spring boot面试题(一)
    ActiveMQ消息队列从入门到实践(4)—使用Spring JMS收发消息
    ActiveMQ消息队列从入门到实践(1)—JMS的概念和JMS消息模型
    有多少程序员干到35岁,那么其他人去干什么了?
  • 原文地址:https://www.cnblogs.com/lxwphp/p/15454961.html
Copyright © 2020-2023  润新知