change default collation in phpmyadmin

后端 未结 8 829
野的像风
野的像风 2020-12-23 17:05

It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this?

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 17:43

    MySQL DB « change Collation Name of a Database|Table to utf8_general_ci inorder to support Unicode.

    Change Configuration settings file also


    XAMPP: uncomment UTF 8 Settings from the Configuration settings file « D:\xampp\mysql\bin\my.ini

    ## UTF 8 Settings
    #init-connect=\'SET NAMES utf8\'
    collation_server=utf8_unicode_ci
    character_set_server=utf8
    skip-character-set-client-handshake
    character_sets-dir="D:/xampp/mysql/share/charsets"
    

    For MySQL server to support UTF8 and the below line of code in file my.cnf

    ## UTF 8 Settings
    collation_server=utf8_unicode_ci
    character_set_server=utf8
    

    @see

    • XAMPP - Apache Virtual Host Setting
    • XAMPP security concept - Error 403,404

提交回复
热议问题