Python MySQL Driver using Cython
This package contains a python MySQL client library.
It is a fork project from PyMySQL https://pymysql.readthedocs.io/en/latest/.
PyMySQL is written by Yutaka Matsubara <email@example.com> as a pure python database driver.
CyMySQL accerarates by Cython, and support not only python 2 but also python 3. It still can work without Cython as a pure python driver.
It is maintained by Hajime Nakagami <firstname.lastname@example.org>.
Documentation on the MySQL client/server protocol can be found here: http://dev.mysql.com/doc/internals/en/client-server-protocol.html
- Python 2.6, 2.7, 3.3+
- MySQL 5.5 or higher
Install cython (optional)
# pip install cython
# pip install cymysql
MySQL 8.0 and insecure connection
If you use caching_sha2_password authentication plugin (MySQL 8.0 default) and connect with ‘not ssl and not unix_socket’ you shoud install pycryptodome
# pip install pycryptodome
import cymysql conn = cymysql.connect(host='127.0.0.1', user='root', passwd='', db='database_name') cur = conn.cursor() cur.execute('select foo, bar from baz') for r in cur.fetchall(): print(r, r)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size cymysql-0.9.15.tar.gz (40.6 kB)||File type Source||Python version None||Upload date||Hashes View|