mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-05-06 18:29:24 +08:00
删除了管理工具和旧客户端(安全问题)
This commit is contained in:
parent
231355e5d8
commit
8817e027a0
@ -1,19 +0,0 @@
|
||||
import pymysql
|
||||
#打开数据库连接
|
||||
db = pymysql.connect(host='www.kakuweb.top',
|
||||
port=33306,
|
||||
user='root',
|
||||
password='KAku3.14159..',
|
||||
database='AIapi')
|
||||
# 使用 cursor() 方法创建一个游标对象 cursor
|
||||
cursor = db.cursor()
|
||||
|
||||
cursor.execute("DELETE FROM usersurplus WHERE surplus < 1;")
|
||||
|
||||
# 提交事务
|
||||
db.commit()
|
||||
|
||||
# 关闭连接
|
||||
db.close()
|
||||
|
||||
print("已完成删除")
|
Loading…
x
Reference in New Issue
Block a user