An Azure managed MySQL database service for app development and deployment.
Hi Carrubbers,
This is expected behavior when upgrading from MySQL 5.7 to MySQL 8.0, and both findings come from documented MySQL 8.0 compatibility requirements.
The utf8mb3 warning appears because your database schema was originally created with the legacy utf8 character set (which maps to utf8mb3). Changing the server default or wp-config.php does not update existing schema metadata. Although this warning does not block the upgrade, it is recommended to update the schema default to utf8mb4 so the validator recognizes it correctly. You can do this by running:
ALTER SCHEMA <your_database_name> DEFAULT CHARACTER SET utf8mb4;
The upgrade-blocking error is caused by the SQL mode NO_AUTO_CREATE_USER. This mode was removed in MySQL 8.0, and if it is still configured, the MySQL 8.0 server cannot start. Azure therefore prevents the upgrade until it is removed.
To fix this, go to Azure Portal → MySQL Flexible Server → Server Parameters, locate sql_mode, and remove NO_AUTO_CREATE_USER from the list. Save the change and allow the server to restart if prompted. After that, rerun the upgrade validation.
Once NO_AUTO_CREATE_USER is removed and the schema charset is updated (recommended), the MySQL 8.0 upgrade validation should complete successfully.
Hope this helps, Please let us know if you have any questions and concerns.