Learn about Centmin Mod LEMP Stack today
Become a Member

MariaDB Convert them to utf8 before adding a database

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

  1. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    10:15 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    Running this:

    Code:
    mysqladmin -u root -p var | grep -E 'character|collation' | tr -s ' '
    i got:

    Code:
    | character_set_client | latin1 |
    | character_set_connection | latin1 |
    | character_set_database | latin1 |
    | character_set_filesystem | binary |
    | character_set_results | latin1 |
    | character_set_server | latin1 |
    | character_set_system | utf8 |
    | character_sets_dir | /usr/share/mysql/charsets/ |
    | collation_connection | latin1_swedish_ci |
    | collation_database | latin1_swedish_ci |
    | collation_server | latin1_swedish_ci |
    
    How can i change them to utf8 before i add any database?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:15 AM
    Nginx 1.13.x
    MariaDB 5.5