2019-12-19 22:01:14 -06:00
|
|
|
import pymysql.cursors
|
|
|
|
|
2020-02-23 16:52:31 -06:00
|
|
|
password = open("../../../../sqlPass.txt", 'r')
|
2020-02-23 16:09:57 -06:00
|
|
|
|
2020-02-23 22:44:21 -06:00
|
|
|
con = pymysql.connect(host='localhost',
|
2020-02-23 22:26:50 -06:00
|
|
|
user='Bot',
|
2020-02-23 16:09:57 -06:00
|
|
|
password=f'{password}',
|
2019-12-19 22:01:14 -06:00
|
|
|
db='serverIDs',
|
|
|
|
charset='utf8mb4',
|
|
|
|
cursorclass=pymysql.cursors.DictCursor)
|
|
|
|
|
|
|
|
with con:
|
|
|
|
|
|
|
|
cur = con.cursor()
|
2019-12-20 20:14:38 -06:00
|
|
|
cur.execute("INSERT INTO servers (name, tags, invite, description) VALUES ('Not Very Official Changed Server','furry, rp', 'invitelink.com','N/A')")
|
2019-12-19 22:01:14 -06:00
|
|
|
|