01 2014 档案

php 使用date()函数的报错
摘要:错误提示:Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone i 阅读全文

posted @ 2014-01-17 16:11 叫我小洋 阅读(391) 评论(0) 推荐(0) 编辑

MySQL server has gone away 的解决方法
摘要:原文引用至:http://www.jb51.net/article/23781.htm,感谢!可能原因:1.发送的SQL语句太长,以致超过了max_allowed_packet的大小,如果是这种原因,你只要修改my.cnf,加大max_allowed_packet的值即可。 2.某些原因导致超时,比如说程序中获取数据库连接时采用了Singleton的做法,虽然多次连接数据库,但其实使用的都是同一个连接,而且程序中某两次操作数据库的间隔时间超过了wait_timeout(SHOW STATUS能看到此设置),那么就可能出现问题。最简单的处理方式就是把wait_timeout改大,当然你也可以在程 阅读全文

posted @ 2014-01-05 11:10 叫我小洋 阅读(1230) 评论(0) 推荐(0) 编辑

mysql:mysql_query(): Unable to save result set
摘要:解决方式方式1:原因:数据表索引损坏方案:使用repair table 表名;方式2:原因:打开表的数据量太大,内存不够。 方案:配置my.ini 调整内存能解决 阅读全文

posted @ 2014-01-05 11:03 叫我小洋 阅读(1477) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示