Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/c/x/CXPhasing-0.3.0/cxphasing/init_CXPhasing_mysql.py   CXPhasing(Download)
    print 'creating database %s :' % CXP.db.master_db,
    xdb.create_and_use(CXP.db.master_db)
    xdb.grant(priv='create', db='*', **grant_kws)
    xdb.grant(priv='drop',   db='*', **grant_kws)
    xdb.execute('flush privileges')
    xdb.source_file(init_sql)
 
    print 'granting permissions...', CXP.db.master_db
 
    xdb.grant(db=CXP.db.master_db, **grant_kws)
 
    xdb.grant(db=CXP.db.master_db, **grant_kws)
    xdb.grant(priv='create', db=CXP.db.master_db, **grant_kws)
    xdb.grant(priv='insert', db=CXP.db.master_db, **grant_kws)
    xdb.grant(priv='alter',  db=CXP.db.master_db, **grant_kws)