© Jesper Wisborg Krogh 2018
Jesper Wisborg KroghMySQL Connector/Python Revealedhttps://doi.org/10.1007/978-1-4842-3694-9_2

2. Connecting to MySQL

Jesper Wisborg Krogh1 
(1)
Hornsby, New South Wales, Australia
 

In the previous chapter, you installed MySQL Connector/Python and made sure that the module worked. However, printing the version string for the connector is hardly very exciting, so this chapter will begin the journey through the features of the two legacy APIs.

The mysql.connector module includes the implementation of the Python Database API, which is defined in PEP249 ( https://www.python.org/dev/peps/pep-0249/ ). This includes the option to use the C Extension while using the same API. This API is the main focus of Chapters 2-5. Additionally, ...

Get MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.