mysql設定編碼的指令是:【SET character_set_database = utf8;】。我們可以透過執行【SHOW VARIABLES LIKE '%set%';】指令來查看資料庫編碼。
一、查看編碼
#(推薦教學:mysql影片教學
(推薦教學:
mysql影片教學SHOW VARIABLES LIKE '%set%';
SET character_set_client = utf8; SET character_set_connection = utf8; SET character_set_database = utf8; SET character_set_database = utf8; SET character_set_results = utf8; SET character_set_server = utf8; SET character_set_system = utf8;
以上是mysql設定編碼的指令是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!