# CyMySQL **Repository Path**: mirrors_sudoconf/CyMySQL ## Basic Information - **Project Name**: CyMySQL - **Description**: CyMySQL: Python MySQL Client powered by Cython - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ======== CyMySQL ======== What's CyMySQL -------------- This package contains a python MySQL client library. It is a fork project from PyMySQL http://www.pymysql.org/ . PyMySQL is written by Yutaka Matsubara 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 . Documentation on the MySQL client/server protocol can be found here: http://dev.mysql.com/doc/internals/en/client-server-protocol.html Requirements ------------- - Python 2.6 or higher - Cython 17.1 or higher - MySQL 4.1 or higher Installation & Example ----------------------- Install cython (optional) :: # pip install cython Install cymysql :: # pip install cymysql Example :: import cymysql conn = cymysql.connect(host='127.0.0.1', user='root', passwd='', db='database_name', charset='utf8') cur = conn.cursor() cur.execute('select foo, bar from baz') for r in cur.fetchall(): print(r[0], r[1])