Skip to main content

Upgrading to MySQL 8.0 utf8mb4 issue

Comments

4 comments

  • cPanelLauren
    So for the conversion I'm not seeing much on doing it en mass MySQL :: MySQL 8.0 Reference Manual :: 10.9.8 Converting Between 3-Byte and 4-Byte Unicode Character Sets - StackOverflow has some information on this How to change all the tables in my database to UTF8 character set? for another type of conversion which uses the same methods to change but you'd want to be very careful when making those changes. As for the zero date mode - are you including those in your SQL_MODE setting? The default SQL mode in MySQL 5.7 includes these modes: ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, and NO_ENGINE_SUBSTITUTION. MySQL :: MySQL 5.7 Reference Manual :: 5.1.10 Server SQL Modes they have some good information on this here but it'd be best to see what your modes are first before moving forward.
    0
  • Charlick
    Hello, Thank you for your reply. Ok, i will investigate that method, i don't see myself convert 10k+ columns for a single server. For what i see it seems more doable than what I found myself. Do you know what might be the outcome if I don't do those convertions? it will a take a large amount of time and i have to report that to my n+1 For the date mode, I checked the my.cnf and i see no modes included. So i guess addind the NO_ZERO_DATE and the NO_ZERO_IN_DATE should solve that issue.
    0
  • digitaliway
    I am also interested in knowing about this upgrade from 5.7 to 8. We have a server with over 120 wordpress websites and see the exact same warnings listed here. If we perform the upgrade will all the wordpress sites go down if we do not convert not from utf8mb3 to utf8mb4 ? the same question for the warning NO_ZERO_IN_DATE and NO_ZERO_DATE, will all sites go down after upgrade? our SQL MODE is set to this currently: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    0
  • cPanelLauren
    WordPress has some stuff on this already that is worth reading @digitaliway
    -1

Please sign in to leave a comment.