Error in server handshake with latest code

Bug #524668 reported by R. Tyler Ballance
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Connector/Python
Fix Released
Critical
Geert JM Vanderkelen

Bug Description

Checking my work with the latest myconnpy code, getting the following error:

Importing model introspection
Creating test database...
Traceback (most recent call last):
  File "runtests.py", line 191, in <module>
    django_tests(int(options.verbosity), options.interactive, args)
  File "runtests.py", line 161, in django_tests
    failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive, extra_tests=extra_tests)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/django/test/simple.py", line 191, in run_tests
    connection.creation.create_test_db(verbosity, autoclobber=not interactive)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/django/db/backends/creation.py", line 327, in create_test_db
    test_database_name = self._create_test_db(verbosity, autoclobber)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/django/db/backends/creation.py", line 363, in _create_test_db
    cursor = self.connection.cursor()
  File "/home/tyler/envs/django/lib/python2.6/site-packages/django/db/backends/__init__.py", line 81, in cursor
    cursor = self._cursor()
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/django/base.py", line 136, in _cursor
    self.connection = Database.connect(**kwargs)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/__init__.py", line 45, in Connect
    return MySQL(*args, **kwargs)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/mysql.py", line 328, in __init__
    self.connect(*args, **kwargs)
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/mysql.py", line 433, in connect
    self._open_connection()
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/mysql.py", line 102, in _open_connection
    self.conn.open_connection()
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/connection.py", line 205, in open_connection
    self.do_handshake()
  File "/home/tyler/envs/django/lib/python2.6/site-packages/mysql/connector/connection.py", line 73, in do_handshake
    raise errors.InterfaceError(errno=2012)
mysql.connector.errors.InterfaceError: 2012: Error in server handshake

Python 2.6
MySQL 5.1.42

Related branches

Changed in myconnpy:
assignee: nobody → Geert JM Vanderkelen (geertjmvdk)
Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

Yikes.. that's no good.

Repeat on Linux :(

I'll work on it as soon as I can.

Changed in myconnpy:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

revno: 218
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-BENCH
timestamp: Mon 2010-02-22 09:58:17 +0100
message:
  Fix parsing MySQL versions which have none-digits

  * Removing the parsing using regular expressions broke parsing versions which
  contain non-digits, e.g. 5.1.42-log or 5.0.50a-log.
  * Adding test case for bug lp:524668, but if the MySQL server used has
  logging enabled, the other test cases would fail too.

Changed in myconnpy:
status: Confirmed → Fix Committed
Changed in myconnpy:
milestone: none → 0.1.4
Changed in myconnpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.