MySQL Connector/Python Revealed

SQL and NoSQL Data Storage Using MySQL for Python Programmers

  • Jesper Wisborg Krogh

Table of contents

  1. Front Matter
    Pages i-xxiii
  2. Getting Ready

    1. Front Matter
      Pages 1-1
    2. Jesper Wisborg Krogh
      Pages 3-43
  3. The Legacy APIs

    1. Front Matter
      Pages 45-45
    2. Jesper Wisborg Krogh
      Pages 47-82
    3. Jesper Wisborg Krogh
      Pages 83-132
    4. Jesper Wisborg Krogh
      Pages 133-221
    5. Jesper Wisborg Krogh
      Pages 223-256
  4. The X DevAPI

    1. Front Matter
      Pages 257-257
    2. Jesper Wisborg Krogh
      Pages 259-304
    3. Jesper Wisborg Krogh
      Pages 305-370
    4. Jesper Wisborg Krogh
      Pages 371-401
  5. Error Handling and Troubleshooting

    1. Front Matter
      Pages 403-403
    2. Jesper Wisborg Krogh
      Pages 405-451
    3. Jesper Wisborg Krogh
      Pages 453-504
  6. Back Matter
    Pages 505-515

About this book


Move data back and forth between database and application. The must-have knowledge in this book helps programmers learn how to use the official driver, MySQL Connector/Python, by which Python programs communicate with the MySQL database. 

This book takes you from the initial installation of the connector through basic query execution, then through more advanced topics, error handing, and troubleshooting. The book covers both the traditional API as well as the new X DevAPI. The X DevAPI is part of MySQL 8.0 and is an API that can be used with connectors for several programming languages and is used from the command-line interface known as MySQL Shell. You will learn to use the connector by working through code examples and following a discussion of how the API calls work. 

By the end of the book, you will be able to use MySQL as the back-end storage for your Python programs, and you’ll even have the option of choosing between SQL and NoSQL interfaces. 

What You'll Learn:
  • Install MySQL Connector/Python
  • Connect to MySQL and configure database access
  • Execute SQL and NoSQL queries from your Python program
  • Trap errors and troubleshoot problems
  • Store data from different languages using MySQL’s character set support
  • Work in the X DevAPI that underlies all of MySQL’s language connectors


Connector/Python X DevAPI Python 8.0 MySQL MySQL Shell NoSQL National Language Support Microsoft Windows Linux Connection Pooling

Authors and affiliations

  • Jesper Wisborg Krogh
    • 1
  1. 1.HornsbyAustralia

Bibliographic information