Skip to content

MySQL > Compatibility error while upgrading engine v5.7.42 to v8.0.33

0

I am trying to upgrade AWS RDS MySQL instance from engine v5.7.42 to v8.0.33 and got below error while checking compatibility >

  The following objects did not pass a syntax check with the latest MySQL 8.0
    grammar. A common reason is that they reference names that conflict with new
    reserved keywords. You must update these routine definitions and `quote` any
    such references before upgrading.
  More information:
    https://dev.mysql.com/doc/refman/en/keywords.html

  mysql.flush_rewrite_rules - at line 5,8: unexpected token 'QUERY'```

How can I get this issue resolved and run the upgrade?

asked 3 years ago637 views

3 Answers
0

This object is a stored procedure from the query rewrite plugin. This plugin is not available on RDS MySQL 5.7. You can drop this stored procedure and the rewrite rules table if you still have it.

AWS

answered 3 years ago

  • So, I should simply DROP the procedure and the table and run the upgrade? I don't need to re-create procedure or update its code?

0

I didn't found how can I remove/drop it.

mysql.flush_rewrite_rules - at line 5,8: unexpected token 'QUERY'```

answered 3 years ago

0

I didn't found how can I remove/drop it.

mysql.flush_rewrite_rules - at line 5,8: unexpected token 'QUERY'```

There is any place with detailed removal process?

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.