changing mysql driver
This commit is contained in:
parent
625f03289a
commit
2cb0e5b718
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ from urllib import urlopen
|
||||||
from urlparse import urlparse
|
from urlparse import urlparse
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
import time
|
import time
|
||||||
|
import MySQLdb
|
||||||
|
|
||||||
|
conn = MySQLdb.connect(host = "localhost",
|
||||||
|
user = "brain",
|
||||||
|
passwd = "horsebatteries",
|
||||||
|
db = "brain")
|
||||||
|
|
||||||
|
|
||||||
db = web.database(dbn='mysql', user='mysecrets', pw='horsebatteries',
|
db = web.database(dbn='mysql', user='mysecrets', pw='horsebatteries',
|
||||||
db='mysecrets')
|
db='mysecrets')
|
||||||
|
|
Reference in a new issue