使用SQLAlchemy查询MySQL数据库,我得到以下错误:
sqlalchemy.exc.OperationalError: (raised as a result of Query-invokedautoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (_mysql_exceptions.OperationalErrorexceeded; try restarting transaction'
当我执行mysqldump时,会得到以下错误:mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES
我怎么才能解决这个问题?