
MySQL
文章平均质量分 50
RayfunC
一个懂艺术, 会写文的攻城狮
展开
-
MySQL解决Waiting for table metadata lock
更改表名时发现卡住show full processlist;发现更改表名的进程卡住,出现表锁,之后所有对这张表的操作都会卡住相关状态 Command 为:Waiting for table metadata lock使用 kill ID杀掉进程但是, 发现杀不掉, 还会以新的 ID 重新运行检查事务:select trx_state, trx_started, trx_mysql_thread_id, trx_query from information_schema.inn..原创 2021-02-03 15:44:31 · 2177 阅读 · 0 评论 -
mysql 8.0高版本 sql_mode=only_full_group_by 解决方法
运行 sql 时报错Expression #2 of SELECT list is not in GROUP BY clause........ which is not functionally dependent on columns in GROUP BY clause;this is incompatible with sql_mode=only_full_group_by1、报错原因这个错误一般发生在mysql 5.7以及 5.7以上的版本中,其原因是mysql的默认配置中,sql_m原创 2021-02-02 15:43:37 · 4105 阅读 · 2 评论