Maison >base de données >tutoriel mysql >xampp本地mysql环境phpmyadmin中文正常但是程序读取时中文问号的_MySQL
XAMPP
先看下
SHOW VARIABLES LIKE 'CHARACTER_SET_%'
发现有latin1, 于是打开my.ini
## UTF 8 Settingsinit-connect=/'SET NAMES utf8/'collation_server=utf8_unicode_cicharacter_set_server=utf8#skip-character-set-client-handshake#character_sets-dir="/xampp/mysql/share/charsets"
EOF