Changed the database user in sampling script.

This commit is contained in:
Gregory Shikhman 2009-09-01 05:36:36 +00:00
parent b55784c099
commit fabb57d0e4

View file

@ -20,7 +20,7 @@ import configuration
TBLSTRING = "SMPL"
def sample(size):
conn = MySQLdb.connect(configuration.DB_HOSTNAME,configuration.DB_USERNAME,configuration.DB_PASSWORD,configuration.DB_NAME)
conn = MySQLdb.connect(configuration.DB_HOSTNAME,configuration.DB_WRITE_USERNAME,configuration.DB_WRITE_PASSWORD,configuration.DB_NAME)
curs = conn.cursor()
curs.execute("SELECT DISTINCT `table` FROM _wsviews")