프로필

프로필 사진
Popomon
Frontend Developer
(2020/12 ~)

    카테고리

    포스트

    [Setting] MariaDB/MySQL 한글 ??? 물음표 해결

    2020. 7. 23. 09:10

    꿈가게: To Do List - iOS

    꿈가게: To Do List - Android

    1. 설정파일 수정하기 - client.cnf

    #
    # These two groups are read by the client library
    # Use it for options that affect all clients, but not the server
    #
    
    
    [client]
    default-character-set = utf8
    
    # This group is not read by mysql client library,
    # If you use the same .cnf file for MySQL and MariaDB,
    # use it for MariaDB-only client options
    [client-mariadb]

     

     

    2. 설정파일 수정하기 - server.cnf

    #
    # These groups are read by MariaDB server.
    # Use it for options that only the server (but not clients) should see
    #
    # See the examples of server my.cnf files in /usr/share/mysql/
    #
    
    # this is read by the standalone daemon and embedded servers
    [server]
    
    # this is only for the mysqld standalone daemon
    [mysqld]
    init_connect = SET collation_connection = utf8_general_ci
    init_connect = SET NAMES utf8
    character-set-server = utf8
    collation-server = utf8_general_ci 
    
    # this is only for embedded server
    [embedded]
    
    # This group is only read by MariaDB-5.5 servers.
    # If you use the same .cnf file for MariaDB of different versions,
    # use this group for options that older servers don't understand
    [mysqld-5.5]
    
    # These two groups are only read by MariaDB servers, not by MySQL.
    # If you use the same .cnf file for MySQL and MariaDB,
    # you can put MariaDB-only options here
    [mariadb]
    
    [mariadb-5.5]
    
    

     

     

    3. 설정파일 수정하기 - clientmysql-clients.cnf

    #
    # These groups are read by MariaDB command-line tools
    # Use it for options that affect only one utility
    #
    
    [mysql]
    default-character-set = utf8
    
    [mysql_upgrade]
    
    [mysqladmin]
    
    [mysqlbinlog]
    
    [mysqlcheck]
    
    [mysqldump]
    default-character-set = utf8
    
    [mysqlimport]
    
    [mysqlshow]
    
    [mysqlslap]