Archive for the ‘mysqldb’ Category

Simple MySQLdb Example

MySQLdb is a python interface to MySQL.  I wrote the following simple script for some database tests and thought it might be handy to others looking for tutorials or examples. It simply connects to MySQL, drops and creates a database called ‘testdb’, makes a table called ‘waves’ with columns ‘sin’, ‘cos’, ‘tan’, and ‘date’ and [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.