有兩種方法...你試一下...不行的話(huà)加我的QQ
創(chuàng)新互聯(lián)從2013年創(chuàng)立,先為莊河等服務(wù)建站,莊河等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢(xún)服務(wù)。為莊河企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問(wèn)題。
76558882
1.
修改
mysql
安裝目錄下的
my.ini
修改
default-character-set=latin1
把latin1
改為
gb2312
或
gbk
注意:
修改兩處
CLIENT
SECTION
#
----------------------------------------------------------------------
#
#
The
following
options
will
be
read
by
MySQL
client
applications.
#
Note
that
only
client
applications
shipped
by
MySQL
are
guaranteed
#
to
read
this
section.
If
you
want
your
own
MySQL
client
program
to
#
honor
these
values,
you
need
to
specify
it
as
an
option
during
the
#
MySQL
client
library
initialization.
#
[client]
port=3306
[mysql]
default-character-set=latin1
//把
latin1
改為
gb2312或
gbk
#
SERVER
SECTION
#
----------------------------------------------------------------------
#
#
The
following
options
will
be
read
by
the
MySQL
Server.
Make
sure
that
#
you
have
installed
the
server
correctly
(see
above)
so
it
reads
this
#
file.
#
[mysqld]
#
The
TCP/IP
Port
the
MySQL
Server
will
listen
on
port=3306
#Path
to
installation
directory.
All
paths
are
usually
resolved
relative
to
this.
basedir="C:/Program
Files/MySQL/MySQL
Server
5.0/"
#Path
to
the
database
root
datadir="C:/Program
Files/MySQL/MySQL
Server
5.0/Data/"
#
The
default
character
set
that
will
be
used
when
a
new
schema
or
table
is
#
created
and
no
character
set
is
defined
default-character-set=latin1
//將latin1
改為
gb2312
或
gbk
2.
進(jìn)入在命令提示符下登錄mysql
輸入
charset
gb2312
你再?lài)L試使用
insert
into
插入一條記看看...
mysql把語(yǔ)言改成中文的步驟如下:
第一步我們需要打開(kāi)軟件,創(chuàng)建一個(gè)數(shù)據(jù)庫(kù),如下圖所示:
第二步創(chuàng)建數(shù)據(jù)庫(kù)之后,需要?jiǎng)?chuàng)建一張漢字和拼音對(duì)照表,使用create table語(yǔ)句創(chuàng)表,如下圖所示:
第三步我們打開(kāi)表,可以看到成功創(chuàng)建一張名為t_base_pinyin的表,并且含有pin_yin_和code_兩個(gè)字段,如下圖所示:
第四步我們使用INSERT INTO t_base_pinyin ()? VALUES ()語(yǔ)句來(lái)給漢字拼音對(duì)照表添加對(duì)照數(shù)據(jù),如下圖所示:
第五步我們打開(kāi)t_base_pinyin ,可以看到對(duì)照數(shù)據(jù)已經(jīng)插入成功,如下圖所示:
第六步我們最后需要?jiǎng)?chuàng)建一個(gè)拼音轉(zhuǎn)換漢字的函數(shù),輸入完成之后進(jìn)行執(zhí)行,語(yǔ)句如下圖所示:
第七步我們輸入select to_pinyin('測(cè)試')語(yǔ)句進(jìn)行查詢(xún),可以看到輸出to_pinyin('測(cè)試'),ceshi,已經(jīng)成功將中文轉(zhuǎn)換成拼音,如下圖所示:
1、Apache 和 MySQL變綠后,這應(yīng)該都會(huì)了。點(diǎn)擊Mysql后的admin,
2、然后會(huì)進(jìn)入這個(gè)頁(yè)面,圖中方框中的是現(xiàn)在使用的語(yǔ)言,點(diǎn)擊后面的小三角,
3、點(diǎn)擊三角后會(huì)彈出這條語(yǔ)言選擇框,選擇圖中的中文選項(xiàng),
4、Mysql的窗口就修改成中文的了,完成效果圖。
網(wǎng)頁(yè)名稱(chēng):mysql怎么使用漢字 mysql使用中文
URL地址:http://chinadenli.net/article20/hhhhco.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、云服務(wù)器、外貿(mào)網(wǎng)站建設(shè)、企業(yè)建站、服務(wù)器托管、小程序開(kāi)發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)