ninehills/labmonitor — Issue #2: www:论坛发贴功能失效
Author: ninehills
Created: 2011-11-25 06:02:03+00:00
State: open

python manage.py poststat 执行错误

% python manage.py poststat 1 ↵
/usr/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
DeprecationWarning
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/usr/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/var/www/labmonitor/www/../www/labmonitor/management/commands/poststat.py", line 10, in handle
post_checkin_statistics()
File "/var/www/labmonitor/www/../www/labmonitor/func.py", line 82, in post_checkin_statistics
d = DiscuzX()
File "/var/www/labmonitor/www/lib/discuzx.py", line 19, in __init__
self.db = MySQLdb.connect(db=MYSQLDB,user=MYSQLUSER,passwd=MYSQLPASS,charset=MYSQLCHARSET)
File "/usr/lib/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'discuz'@'localhost' (using password: YES)")