From 95c7e3a8fad1b55dabb6c194b6a3de254963a9d5 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Sun, 18 Sep 2022 09:18:43 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.py b/src/config.py index b110644..ab5ca48 100644 --- a/src/config.py +++ b/src/config.py @@ -15,10 +15,11 @@ class Config: database file path is "./src/db/data.sqlite", it is not exists, before you run server first remote sqlite file url is "https://pac.rtst.tech/static_file_hosting/static/counter/data.sqlite" you can download it manually - if you want to use mysql then replace "mysql|[Username]:[password]@[host]:[port]/[database]" with "sqlite" - example: mysql-root:114514@127.0.0.1:3306/homo + if you want to use mysql then replace "mysql://[Username]:[password]@[host]:[port]/[database]" with "sqlite" + example: mysql://root:114514@127.0.0.1:3306/homo """ - database = "sqlite" + database = "mysql://counter:114514@111.173.80.154:26098/Counter" + # database = 'sqlite' if 'sqlite' in database: os.environ['counter_db_type'] = 'sqlite' elif 'mysql' in database: