RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
mysql中汉字怎么打 mysql55怎么输入中文

mysql无法输入汉字

方法一:在插入中文之前 先输命令set names gbk 告诉客户端你在这里敲的命令是GBK编码的 客户端会把你接下来敲的命令转成UTF-8 你数据库内部的编码还是UTF-8

从事资阳托管服务器,服务器租用,云主机,网站空间域名申请,CDN,网络代维等服务。

方法二:修改你安装目录下面的my.ini这个文件 编辑这个文件 找到

[mysql]

default-character-set=utf8

把default-character-set=utf8改成default-character-set=GBK

这里的意思是告诉MySQL你在客户端敲的命令都是GBK编码

注:不用改[mysqld]下面的default-character-set 这里的default-character-set指的是MySQL底层存储的字符集编码 可以是utf8 utf8是支持各国文字的

改过后重启服务

方法三:根据向导重新配置 把编码设成gbk或gb2312 不过这把你MySQL内部的字符集编码都改变了 不建议

怎样往MYSQL输入汉字?

有两种方法...你试一下...不行的话加我的QQ

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.

进入在命令提示符下登录mysql

输入

charset

gb2312

你再尝试使用

insert

into

插入一条记看看...

mysql控制台中怎样输入汉字

这种类似模拟DOS的控制台程序包括CMD程序,都不是很好的支持中文。

凡是你看到这种程序,你就别想着怎么用中文。去下个其他工具吧


标题名称:mysql中汉字怎么打 mysql55怎么输入中文
转载注明:http://scyingshan.cn/article/dosgooc.html