mysql-connector-python

The package comes with a testsuite that is enabled by default, but fails with the following error Unknown system variable ‘default_authentication_plugin by MariaDB 10.1.

Stretch doesn’t contain a MySQL server package. To make it work, one can install the MySQL community server package for Stretch in a newly created VM:

wget https://dev.mysql.com/get/mysql-apt-config_0.8.6-1_all.deb
apt-get install ./mysql-apt-config_0.8.6-1_all.deb

Follow the short dialog. At the time of writing, MySQL server versions 5.6 and 5.7 are available. This tutorial has been tested with the latter. Update the package database and install the community server:

apt-get update
apt-get install mysql-community-server

This will uninstall any installed MariaDB server version.

Copy the package sources into the VM. Then build the package or run the test-suite manually. It seems, though, that there is a problem when using fakeroot, so it seems best to avoid it.

debian/rules install

It seems, though, that there is a problem when using fakeroot, so it seems best to avoid it.

TODO: Ideally, the VM should be usable by autopkgtest and the tests run only via autopkgtest.

Copyright (C) 2025 Daniel Leidert