{"id":1045,"date":"2005-12-23T01:53:18","date_gmt":"2005-12-22T20:23:18","guid":{"rendered":"http:\/\/tao.kaoart.info\/blog-others\/kunstao\/2005\/410\/"},"modified":"2005-12-23T01:53:18","modified_gmt":"2005-12-22T20:23:18","slug":"%e8%b1%86%e7%93%a3%e5%87%ba%e9%94%99%e4%ba%86%ef%bc%8c%e5%8e%9f%e6%9d%a5%e6%98%af%e7%94%a8python%e5%bc%84%e5%be%97","status":"publish","type":"post","link":"https:\/\/tao0.date\/?p=1045","title":{"rendered":"\u8c46\u74e3\u51fa\u9519\u4e86\uff0c\u539f\u6765\u662f\u7528python\u5f04\u5f97"},"content":{"rendered":"<p>\u8c46\u74e3\u51fa\u9519\u4e86\uff0c\u539f\u6765\u662f\u7528python\u52a0MYSQL\u5f04\u5f97<br \/>\n<!--more--><\/p>\n<blockquote><p>Traceback (most recent call last):<br \/>\n  File &#8220;\/usr\/lib\/python2.4\/site-packages\/quixote\/publish.py&#8221;, line 522, in process_request<br \/>\n    output = self.try_publish(request, env.get(&#8216;PATH_INFO&#8217;, &#8221;))<br \/>\n  File &#8220;\/usr\/lib\/python2.4\/site-packages\/quixote\/publish.py&#8221;, line 457, in try_publish<br \/>\n    output = object(request)<br \/>\n  File &#8220;\/var\/www\/douban\/luz\/__init__.py&#8221;, line 33, in _q_index<br \/>\n    return nonmember_ui(request)<br \/>\n  File &#8220;\/var\/www\/douban\/luz\/nm_home_ui.ptl&#8221;, line 17, in nonmember_ui<br \/>\n    main_layout(request, main_content, sidebar_content, right_width=350)<br \/>\n  File &#8220;\/var\/www\/douban\/luz\/site_ui.ptl&#8221;, line 73, in main_layout<\/p>\n<td width=\"45\"\/>\n<td valign=\"top\" %s>\n  File &#8220;\/var\/www\/douban\/luz\/nm_home_ui.ptl&#8221;, line 52, in sidebar_content<br \/>\n    others=get_latest_interests(&#8216;1001&#8217;)<br \/>\n  File &#8220;\/var\/www\/douban\/luzong\/interest.py&#8221;, line 121, in get_latest_interests<br \/>\n    store.farm.execute(&#8220;select subject_id,user_id,tags,comment,status,`time`,cat_id from user_interest order by id desc limit %s&#8221;, (limit,))<br \/>\n  File &#8220;\/usr\/lib\/python2.4\/site-packages\/MySQLdb\/cursors.py&#8221;, line 137, in execute<br \/>\n    self.errorhandler(self, exc, value)<br \/>\n  File &#8220;\/usr\/lib\/python2.4\/site-packages\/MySQLdb\/connections.py&#8221;, line 33, in defaulterrorhandler<br \/>\n    raise errorclass, errorvalue<br \/>\nOperationalError: (2006, &#8216;MySQL server has gone away&#8217;)<br \/>\nForm:<br \/>\nCookies:<br \/>\n__utma          164037162.1073837553.1135090838.1135090838.1135098134.2<br \/>\n__utmz          164037162.1135098134.2.2.utmccn=(referral)|utmcsr=baidu.com|utmcct=\/s|utmcmd=referral<br \/>\nEnvironment:<br \/>\nCONTENT_LENGTH  0<br \/>\nDOCUMENT_ROOT   \/var\/www\/douban\/<br \/>\nGATEWAY_INTERFACE CGI\/1.1<br \/>\nHTTP_ACCEPT     *\/*<br \/>\nHTTP_ACCEPT_ENCODING gzip<br \/>\nHTTP_ACCEPT_LANGUAGE zh-cn<br \/>\nHTTP_COOKIE     __utma=164037162.1073837553.1135090838.1135090838.1135098134.2; __utmz=164037162.1135098134.2.2.utmccn=(referral)|utmcsr=baidu.com|utmcct=\/s|utmcmd=referral<br \/>\nHTTP_HOST       www.douban.com<br \/>\nHTTP_USER_AGENT Mozilla\/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; Poco 0.31; Alexa Toolbar; .NET CLR 2.0.40607)<br \/>\nHTTP_X_FORWARDED_FOR 139.18.179.4<br \/>\nPATH_INFO       \/<br \/>\nQUERY_STRING<br \/>\nREDIRECT_STATUS 200<br \/>\nREMOTE_ADDR     64.233.173.86<br \/>\nREMOTE_PORT     58067<br \/>\nREQUEST_METHOD  GET<br \/>\nREQUEST_URI     \/<br \/>\nSCGI            1<br \/>\nSCRIPT_FILENAME \/var\/www\/douban\/<br \/>\nSCRIPT_NAME<br \/>\nSERVER_ADDR     61.129.113.231<br \/>\nSERVER_NAME     www.douban.com<br \/>\nSERVER_PORT     80<br \/>\nSERVER_PROTOCOL HTTP\/1.1<br \/>\nSERVER_SOFTWARE lighttpd\/1.4.8<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u8c46\u74e3\u51fa\u9519\u4e86<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1045","post","type-post","status-publish","format-standard","hentry","category-blog-others"],"_links":{"self":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/1045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1045"}],"version-history":[{"count":0,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/1045\/revisions"}],"wp:attachment":[{"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}