P a ge | 30
iv. Open your Python IDLE Shell.
v. Click File -> New File or Click Ctrl + N
vi. Then, type the code as the following.
Make sure your
username and
password are based
on your MySQL server
setting.
vii. Save the file as dbconnector.py.
viii. Click Run Run Module to compile the code.