create_db.py 249 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 #!/usr/bin/python # coding: utf-8 import config dbname_fix="USER" db_count=10 for i in range (db_count): db_name= "%s_%s_%01d"%(config.server_index,dbname_fix,i) print """ drop database if exists %s;create database %s; """ %(db_name,db_name)