Share via

Can't upgrade to mysql8 linked with wordpress

Carrubbers 20 Reputation points
2026-02-03T09:00:12.24+00:00

Hi - I'm trying to upgrade mySQL5.7 to 8.0 and when I chose to validate it comes up with the following errors belo..

For the first one, I did change my defauly char set in the database to be utf8mb4 in the parameter settings, and I did change wp-config.php to say the same, but still the same error.

For the second, I have no idea where to start or look of how to fix it.

How can I fix it?

Thanks

  1. Warning: Usage of utf8mb3 charset

The following objects use the utf8mb3 character set. It is recommended to convert them to use utf8mb4 instead, for improved Unicode support.

projectxxxxxx_database - schema's default character set: utf8

  1. Error: Usage of deprecated configurations.

ConfigName: sql_mode

ConfigValue: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER

AllowedValues: ,ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES,TIME_TRUNCATE_FRACTIONAL

InvalidValue: NO_AUTO_CREATE_USER


Moderator: Moved from SQL Server Migration Assistant

Azure Database for MySQL

Answer accepted by question author
  1. Manoj Kumar Boyini 12,735 Reputation points Microsoft External Staff Moderator
    2026-02-05T00:03:47.1666667+00:00

    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.

    2 people found this answer helpful.
    0 comments No comments

Answer recommended by moderator
  1. Carrubbers 20 Reputation points
    2026-02-07T00:32:36.21+00:00

    For anyone reading this...

    There were steps to follow and I had a more complicated time as for some rason I had 2 virtual networks.
    Although I still had DNS issues despite checking my private DNS zone, etc; I found I could get the IP address of the MySQL server and I could ping that through my VPN connection. Applying that to workbench let me in to the database.

    Finding the IP of the server, I went to the Private DNS zone of the server, then clicked on the Record Sets, then on the next screen I saw 2 entries; one showing the IP address of the server.
    User's image

    Superb help from Manoj on this one. What a hero.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.