- Newest
- Most votes
- Most comments
The error you're encountering during the upgrade from Aurora MySQL 5.7 to 8.0.32 is related to syntax issues in certain routine-like objects. This is a common issue when upgrading to MySQL 8.0, as some keywords and syntax rules have changed.
To resolve this issue, you need to update the definitions of the problematic routines. Here's a step-by-step guide to address each of the detected problems:
-
For mysql.lambda_async: The error suggests an unexpected token '(' at line 4. You'll need to review and modify the routine definition to ensure it complies with MySQL 8.0 syntax.
-
For mysql.rds_import_binlog_ssl_material: The error indicates an unexpected token 'ebr_clear_ssl_material' at line 12. This might be due to a change in function names or syntax in MySQL 8.0. You should check the current implementation and update it accordingly.
-
For mysql.rds_remove_binlog_ssl_material: Similar to the previous issue, there's an unexpected token 'ebr_remove_ssl_material' at line 2. This routine definition needs to be updated to match MySQL 8.0 syntax requirements.
To fix these issues:
-
Review the current definitions of these routines using the SHOW CREATE PROCEDURE or SHOW CREATE FUNCTION commands.
-
Identify the specific syntax issues in each routine, paying attention to the line numbers mentioned in the error messages.
-
Modify the routines to use MySQL 8.0 compatible syntax. This may involve quoting certain references, especially if they conflict with new reserved keywords in MySQL 8.0.
-
After making the necessary changes, drop and recreate each routine with the updated syntax.
-
Run the precheck again to ensure all syntax issues have been resolved.
If you're unsure about the correct syntax or how to modify these routines, it's recommended to consult the MySQL 8.0 documentation or seek assistance from your database administrator. Remember to backup your database before making any changes.
After resolving these syntax issues, you should be able to proceed with the upgrade process. Keep in mind that there might be other compatibility issues to address, so it's crucial to thoroughly test your application with MySQL 8.0 before finalizing the upgrade.
Sources
Precheck descriptions reference for Aurora MySQL - Amazon Aurora
How to perform an in-place upgrade - Amazon Aurora
Please see previous answer
https://repost.aws/questions/QU_jfgd2gURk6TzL8JcQCO9Q/error-upgrading-mysql-5-7-to-8-0
Alternatively remove any reserved keywords or quote them in these stored procedures
{
"level": "Error",
"dbObject": "mysql.lambda_async",
"description": "at line 4,12: unexpected token '('"
},
{
"level": "Error",
"dbObject": "mysql.rds_import_binlog_ssl_material",
"description": "at line 12,14: unexpected token 'ebr_clear_ssl_material'"
},
{
"level": "Error",
"dbObject": "mysql.rds_remove_binlog_ssl_material",
"description": "at line 2,16: unexpected token 'ebr_remove_ssl_material'"
}
Relevant content
asked 3 years ago
asked 3 years ago
