Learn about Centmin Mod LEMP Stack today
Register Now

utf8mb4_general_ci VS utf8_general_ci

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Jun 9, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    4,028
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    5:26 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hi

    Why i can see as default on phpmyadmin centminmod addon the utf8mb4_general_ci?

    Is it better or faster than utf8_general_ci ?


    I know i can change it but i am curious :)

    Or is it better to use even utf8_unicode_ci ?

    What is the default and better that the most forums/blogs uses?

    Thanks
     
    Last edited: Jun 9, 2014
  2. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    1:26 AM
    Nginx 1.25.x
    MariaDB 10.x
    @pamamolf where are you seeing that ? Read on my blog http://vbtechsupport.com/1375/ to be clear of the differences between phpmyadmin default session character set and collation versus your database defaults. They are 2 different things. It could phpmyadmin default session collation is set different for some specific support ?

    http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-sets.html

    so it looks for better and wider compatibility phpmyadmin session only defaults to utf8mb4. You need to check what you databases default to as that would be different from phpmyadmin session defaults as per explanation at http://vbtechsupport.com/1375/