Skip to content
  • This project
    • Loading...
  • Sign in

金学艇 / xhx

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • xhx
  • server
  • trunk
  • db
  • sql
  • create_global_db.py
  • jinwawa's avatar
    0509 · 7b96a3da
    7b96a3da
    jinwawa authored 2019-05-09 20:22:06 +0800
create_global_db.py 201 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_name= "%s_%s"%(config.server_index,dbname_fix)


print """
drop database if exists %s;create database %s; 
""" %(db_name,db_name)