Insert data to a mysql server from python ON PC with windows
![圖片](http://1.bp.blogspot.com/-RXL9Gd8tXDY/VMjsc96hxNI/AAAAAAAAWig/p74zxyuGfds/s1600/Screenshot%2B2015-01-28%2B22.04.03.png)
after installing mysql server and client(python connector) on my beaglebone, I learn to insert data from python in to mysql server. All these are done on windows PC. most data are found in http://www.mysqltutorial.org/python-mysql/ Here is a example on how to connect to a data base from python: import mysql.connector from mysql.connector import Error def connect(): """ Connect to MySQL database """ try: conn = mysql.connector.connect(host='localhost', database='iot', user='root', password='') ...