mysql.sock 111,异常值:(2002,“无法通过套接字'/var/run/mysqld/mysqld.sock'(111)连接到本地MySQL服务器”)...

Environment:RequestMethod:GETRequestURL:http://getfbstuff.com/DjangoVersion:1.6.2PythonVersion:2.7.3InstalledApplications:('django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.sites','django.contrib.messages','django.contrib.staticfiles','django.contrib.admin','downloader','ckeditor','django.contrib.sitemaps')InstalledMiddleware:('django.middleware.common.CommonMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.middleware.csrf.CsrfViewMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.contrib.messages.middleware.MessageMiddleware')Traceback:File"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"inget_response114.response=wrapped_callback(request,*callback_args,**callback_kwargs)File"/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py"in_cache_controlled38.response=viewfunc(request,*args,**kw)File"/home/getfbstuff/public_html/getfbstuff.com/fb/downloader/views.py"inindex23.ifseo:File"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"in__nonzero__100.self._fetch_all()File"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"in_fetch_all854.self._result_cache=list(self.iterator())File"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"initerator220.forrowincompiler.results_iter():File"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py"inresults_iter709.forrowsinself.execute_sql(MULTI):File"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py"inexecute_sql781.cursor=self.connection.cursor()File"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py"incursor157.cursor=self.make_debug_cursor(self._cursor())File"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py"in_cursor129.self.ensure_connection()File"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py"inensure_connection124.self.connect()File"/usr/local/lib/python2.7/dist-packages/django/db/utils.py"in__exit__99.six.reraise(dj_exc_type,dj_exc_value,traceback)File"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py"inensure_connection124.self.connect()File"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py"inconnect112.self.connection=self.get_new_connection(conn_params)File"/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py"inget_new_connection435.conn=Database.connect(**conn_params)File"/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py"inConnect81.returnConnection(*args,**kwargs)File"/usr/lib/python2.7/dist-packages/MySQLdb/connections.py"in__init__187.super(Connection,self).__init__(*args,**kwargs2)ExceptionType:OperationalErrorat/ExceptionValue:(2002,"Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)")`

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值