Welcome to Centmin Mod Community
Register Now

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 Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    5:49 AM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+