How to do it...

Let's look at how to install and connect to a MySQL server from Python:

  1. Download the MySQL Installer.
There is a free MySQL Community Edition available from the official MySQL website. You can download and install it on your local PC from http://dev.mysql.com/downloads/windows/installer/.
  1. Run the installation:
  1. Choose a password for the root user and, optionally, add more users:
  1. Verify that you have the \Python37\Lib\site-packages\mysql\connector folder:
  1. Open the mysqlsh.exe executable and double-click on it to run ...

Get Python GUI Programming Cookbook - Third Edition 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.