First time here? Check out the FAQ!

Revision history  [back]

mysql_exceptions.OperationalError

Any idea on how to solve this?:

(ENV) C:\Users\Francisko\ENV\Whatzz>python manage.py syncdb


************************
*                      *
*   Askbot self-test   *
*                      *
************************


Your output encoding is not UTF-8, there may be issues with the software when an
ything is printed to the terminal or log files


************************
*                      *
*   Askbot self-test   *
*                      *
************************


Please run command

    python manage.py collectstatic
(2013, "Lost connection to MySQL server at 'reading initial communication packet
', system error: 0")
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\__init__.py", line 438, in execute_manager
    utility.execute()
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\base.py", line 219, in execute
    self.validate()
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\c
ore\management\validation.py", line 102, in get_validation_errors
    connection.validation.validate_field(e, opts, f)
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\d
b\backends\mysql\validation.py", line 14, in validate_field
    db_version = self.connection.get_server_version()
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\d
b\backends\mysql\base.py", line 338, in get_server_version
    self.cursor()
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\d
b\backends\__init__.py", line 250, in cursor
    cursor = self.make_debug_cursor(self._cursor())
  File "C:\Users\Francisko\ENV\lib\site-packages\django-1.3.1-py2.7.egg\django\d
b\backends\mysql\base.py", line 322, in _cursor
    self.connection = Database.connect(**kwargs)
  File "C:\Users\Francisko\ENV\lib\site-packages\MySQLdb\__init__.py", line 81,
in Connect
    return Connection(*args, **kwargs)
  File "C:\Users\Francisko\ENV\lib\site-packages\MySQLdb\connections.py", line 1
87, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2013, "Lost connection to MySQL server at '
reading initial communication packet', system error: 0")