from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base engine = create_engine("mysql+pymysql://admin:Admin_123@47.121.132.11:3306/demo") SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base()