В Python это будет что-то вроде:
import MySQLdb, xlrd
def xl_to_mysql():
book = xlrd.open_workbook('yourdata.xls')
to_db = []
for sheet in book.sheets():
for rowx in xrange(sheet.nrows):
to_db.append(tuple(sheet.cell(rowx, colx).value
for colx in xrange(sheet.ncols)))
conn = MySQLdb.connect(host="yourhost",user="username",
passwd="yourpassword",db="yourdb")
curs = conn.cursor()
# however many placeholders `%s` you need in the query below
curs.executemany("INSERT INTO yourtable VALUES (%s,%s,%s);", to_db)
conn.commit()
curs.close()
conn.close()
if __name__ == '__main__':
xl_to_mysql()