weijiang1994 / Blogin

A blog system depend on flask.使用flask框架开发的个人博客系统.
https://2dogz.cn
GNU General Public License v3.0
509 stars 99 forks source link

我在local时候重新修改我写的博客,然后保存编辑的时候出现了:sqlalchemy.exc.OperationalError #18

Closed tianke0711 closed 3 years ago

tianke0711 commented 3 years ago

sqlalchemy.exc.OperationalError sqlalchemy.exc.OperationalError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (pymysql.err.OperationalError) (1205, 'Lock wait timeout exceeded; try restarting transaction') [SQL: UPDATE blog SET content=%(content)s WHERE blog.id = %(blog_id)s] [parameters: {'content': '

学习图像

\r\n\r\n

 

\r\n\r\n

xxx

\r\n', 'blog_id': 1}] (Background on this error at: http://sqlalche.me/e/13/e3q8)

weijiang1994 commented 3 years ago

重新运行一下应用试试