mysql01.py

#!/usr/bin/python
# ==================================================================
# test _mysql
# ------------------------------------------------------------------
# sudo apt-get install python-mysqldb
# sudo apt-get install python3-mysqldb
# ==================================================================

import _mysql

db = _mysql.connect('localhost','root','root')


print('xxxxxxxxxxxxxxxxxxxxxxxx')