跳至內容

Error Upgrading MySQL 5.7 to 8.0

0
  1. MySQL 8.0 syntax check for routine-like objects https://dev.mysql.com/doc/refman/8.0/en/keywords.html More Information: https://dev.mysql.com/doc/refman/en/keywords.html mysql.flush_rewrite_rules - at line 5,8: unexpected token 'QUERY'

已提問 3 年前檢視次數 1119 次

1 個回答
1

Hi,

Look at this similar issue: https://bugs.mysql.com/bug.php?id=112067

It states: the query cache is removed in MySQL 8.0. The command to reset query cache was also removed from the query rewrite script in 8.0. as follows

It is confirmed by MySQL official documentation: https://dev.mysql.com/blog-archive/mysql-8-0-retiring-support-for-the-query-cache/

With the current limitations noted, the query cache will continue to be supported for the life time of MySQL 5.7. MySQL 8.0 will not support query cache, and users upgrading will be encouraged to use either Server-side Query Rewrite or ProxySQL as a man-in-the-middle cache.

So, follow MySQL guidance to fix your issue.

Best,

Didier

專家

已回答 3 年前

AWS
專家

已審閱 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。