Did I find the right examples for you? yes no

All Samples(54)  |  Call(54)  |  Derive(0)  |  Import(0)
Connection([host, user, passwd,] db=None, port=0, unix_socket=None, 
    connect_timeout=None, read_timeout=None, write_timeout=None, 
    protocol=None, ssl=None, read_default_file=None, 
    read_default_group=None, init_command=None, charset_dir=None, 
    shared_memory_base_name=None, local_infile=False, 
    require_secure_auth=False, report_truncation=True, compress=False, 
    found_rows=True, use_unicode=True, charset='utf8', autoping=False, 
    default_cursor=None, raise_on_warnings=True, autoreconnect=False)

Connect to the MySQL database. The first three parameters may be passed by (more...)

src/w/h/WhoisDaemon-HEAD/whois_daemon/backends/mysql.py   WhoisDaemon(Download)
        """
        try :
            self.conn = oursql.connect(host = self.config['host'],
                                user = self.config['user'],
                                passwd = self.config['password'],

src/d/a/database-reports-HEAD/wikidatawiki/userspaceinitems.py   database-reports(Download)
def main():
    db_ts = oursql.connect(
        host="sql-toolserver",
        read_default_file=os.path.expanduser("~/.my.cnf"),
        charset=None,
    rows = cursor.fetchall()
    db_ts.close()
    db = oursql.connect(db='wikidatawiki_p',
        host="sql-s5",
        read_default_file=os.path.expanduser("~/.my.cnf"),

src/w/i/wikidata-HEAD/wikidata_rc.py   wikidata(Download)
def main():
    import oursql
    db = oursql.connect(db='dewiki_p',
        host="dewiki-p.rrdb.toolserver.org",
        read_default_file=os.path.expanduser("~/.my.cnf"),

src/w/i/wikidata-HEAD/wikidata_blank_items.py   wikidata(Download)
def main():
 
 
    db = oursql.connect(db='wikidatawiki_p',
        host="wikidatawiki-p.rrdb.toolserver.org",

src/d/a/database-reports-HEAD/wikidatawiki/property_inheritance.py   database-reports(Download)
def main():
    page = wikitools.Page(wiki, base)
    db = oursql.connect(db='wikidatawiki_p',
                        host="sql-s5",
                        read_default_file=os.path.expanduser("~/.my.cnf"),

src/d/a/database-reports-HEAD/wikidatawiki/popular_properties.py   database-reports(Download)
def main():
    page=wikitools.Page(wiki, 'Wikidata:Database reports/Popular properties')
    db = oursql.connect(db='wikidatawiki_p',
        host="sql-s5",
        read_default_file=os.path.expanduser("~/.my.cnf"),

src/d/a/database-reports-HEAD/wikidatawiki/popular_items.py   database-reports(Download)
def main():
    page=wikitools.Page(wiki, 'Wikidata:Database reports/Popular items')
    db = oursql.connect(db='wikidatawiki_p',
        host="sql-s5",
        read_default_file=os.path.expanduser("~/.my.cnf"),

src/d/a/database-reports-HEAD/wikidatawiki/missing_links.py   database-reports(Download)
def main():
    page=wikitools.Page(wiki, 'Wikidata:Database reports/Missing links')
    db = oursql.connect(db='wikidatawiki_p',
        host="wikidatawiki-p.rrdb.toolserver.org",
        read_default_file=os.path.expanduser("~/.my.cnf"),

src/x/m/xmppserver-HEAD/kontalk/xmppserver/database.py   xmppserver(Download)
def connect(host, port, user, passwd, dbname, servercfg):
    log.debug("connecting to database %s on %s@%s" % (dbname, user, host))
    db = oursql.connect(host=host, port=port, user=user, passwd=passwd, db=dbname)
    return MessengerDb(db, servercfg)
 

src/w/m/wmflabs-2.2.1/wmflabs/db.py   wmflabs(Download)
    else:
        host = dbname + ".labsdb"
    return oursql.connect(db=dbname + '_p',
                          host=host,
                          read_default_file=os.path.expanduser("~/replica.my.cnf"),

  1 | 2 | 3 | 4 | 5  Next