Browse Source

mysql issue

aaron-1015 3 years ago
parent
commit
1498e04f4c
2 changed files with 2 additions and 1 deletions
  1. BIN
      __pycache__/main.cpython-39.pyc
  2. 2 1
      main.py

BIN
__pycache__/main.cpython-39.pyc


+ 2 - 1
main.py

@@ -30,7 +30,8 @@ from jose import JWTError, jwt
 from fastapi_jwt_auth import AuthJWT
 from fastapi_jwt_auth.exceptions import AuthJWTException
 from fastapi.security import OAuth2AuthorizationCodeBearer, OAuth2PasswordRequestForm
-
+import pymysql
+pymysql.install_as_MySQLdb()
 
 # app
 app = FastAPI()