Skip to content
Dāvis edited this page Jul 17, 2014 · 5 revisions

Requirements

Step by step

  1. Install Python 3
  2. Optionally add python to PATH or if you've multiple versions you can set it temporarily for that command-line. Also alternatively you can write full path.
  3. Check if python works (Note. python (python.exe) refers to Python 3)
  4. Install MySQL Connector/C.
  5. Install Visual Studio for Windows Desktop
  6. Download and extract MySQL for Python 3
  7. Open Developer Command Prompt
  8. If you haven't put python in PATH you can temporary set it with set PATH=location\to\python\;%PATH% (or you can edit win_build.cmd with full path to python)
  9. Now finally install it by launching win_build in opened command-line.
  10. You can test if it was successfully installed by opening python and typing import MySQLdb (it shouldn't say anything if import was successful)

Basic check

  1. start MySQL server (if it's not running)
  2. create test.py with contents from [Usage example](Usage example)
  3. edit settings (root password, etc) accordingly
  4. try it with python test.py
Clone this wiki locally