直接在URI中的配置方法
SQLALCHEMY_DATABASE_URI = ('mysql+mysqlconnector://username:passwrod@ip:prot/database?charset=utf8&autocommit=true')
错误类型一
(mysql.connector.errors.OperationalError) MySQL Connection not available.
错误类型二
(sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back