当前位置:Gxlcms > 数据库问题 > Mysql数据库问题

Mysql数据库问题

时间:2021-07-01 10:21:17 帮助过:16人阅读

记录关于Mysql中遇到的问题。

问题一:后台报错:Lock wait timeout exceeded; try restarting transaction

原因:数据库中数据处于只读状态,不准update。

解决方式:杀死该项进程即可。

具体方式:我使用的数据库可视化工具为Navicate。点击“查询” -->“新建”,然后输入语句:“select * from information_schema.innodb_trx”,这样就得到只读进程,然后找到进程id号:trx_mysql_thread_id,然后输入“kill ” +id号,即可解决此问题。

Mysql数据库问题

标签:div   新建   tran   数据库   记录   sql数据库   inf   start   rest   

人气教程排行