mysql設定編碼的指令是:【SET character_set_database = utf8;】。我們可以透過執行【SHOW VARIABLES LIKE '%set%';】指令來查看資料庫編碼。
一、查看編碼
#(推薦教學:mysql影片教學
(推薦教學:
mysql影片教學SHOW VARIABLES LIKE '%set%';###二、將編碼設定為UTF-8######
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;###相關推薦:###php訓練######
以上是mysql設定編碼的指令是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!