# -*- coding: utf-8 -*-
import MySQLdb
DB = MySQLdb.connect(host="localhost", user="root", passwd="123", db="123", charset='utf8', use_unicode=True)
Cursor = DB.cursor()
sql = u'INSERT INTO cdr(device_id, connection_date_time, call_duration) VALUES(%s, %s, %s)'
text = (u"Один", u"Два", u"Три")
Cursor.execute(sql, text)
DB.commit()
DB.close()
Вдруг кому надо:
[admin@RB2011] /interface ethernet> set [ find default-name=ether1 ] bandwidth=unlimited/unlimited
[admin@RB2011] /interface ethernet> set [ find default-name=ether2 ] bandwidth=unlimited/unlimited
[admin@RG2011] /interface ethernet> set [ find default-name=ether4 ] bandwidth=unlimited/unlimited