色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

mysql修改數(shù)據(jù)名稱,本地mysql數(shù)據(jù)庫(kù)怎樣修改字符集

老白2年前22瀏覽0評(píng)論
mysql修改數(shù)據(jù)名稱,本地mysql數(shù)據(jù)庫(kù)怎樣修改字符集?

如果沒有配置好cmd里面的mysql 環(huán)境變量,那就在系統(tǒng)高級(jí)設(shè)置那兒進(jìn)行MySQL的環(huán)境變量設(shè)置。

win+R,調(diào)出“運(yùn)行”,輸入cmd,回車

登錄數(shù)據(jù)庫(kù),

查看數(shù)據(jù)庫(kù)

查看數(shù)據(jù)庫(kù)字符編碼

通過MySQL命令行修改:(編碼可選)

mysql> set character_set_client=utf8;

mysql> set character_set_connection=utf8;

mysql> set character_set_database=utf8;

mysql> set character_set_results=utf8;

mysql> set character_set_server=utf8;

mysql> set character_set_system=utf8;

mysql> set collation_connection=utf8;

mysql> set collation_database=utf8;

mysql> set collation_server=utf8;

當(dāng)然還有:

修改數(shù)據(jù)庫(kù)的字符集mysql>use mydb

mysql>alter database mydb character set utf8;

創(chuàng)建數(shù)據(jù)庫(kù)指定數(shù)據(jù)庫(kù)的字符集

mysql>create database mydb character set utf8;