易截截图软件、单文件、免安装、纯绿色、仅160KB

MySQL乱码问题 快把我整疯了 - Web 开发 / 其他

中文乱码问题 

用insert插入数据库的中文是乱码

以下是我查询的数据库的 编码方式

数据库milk 下面有表 staff

分别执行了 下面几条命令
show create table staff;
show full fields from staff;
show create database milk
show variables like '%char%';
show variables like '%coll%';
select * from staff;
insert into staff(staffname,work,password,useful) values ("张三","审核","
1","有效");
并附有返回结果
另外我再该库基础上做了一个系统,通过系统往里面插入数据正常 但是直接执行增删查改等语句就会出现中文乱码的问题
系统用的是Struts2+Spring+hibernate开发的

求大家指点迷津

Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 5.0.22-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use milk
Database changed
mysql> show create table staff;
+-------+-----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-----------------------------------------+
| Table | Create Table


  |
+-------+------------------------------------------


相关问答:

mysql连接tomcat - Java / Web 开发

我已经按照教程上配置tomcat的server.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......

mysql区没高手 - MS-SQL Server / 基础类

我觉得mysql和sqlserver有共同的地方:
有个问题是关于表的锁问题:
进程A 进程B
select * from user where id in lock share mode(共享锁)
&nb ......

MySQL数据库存放在哪啊? - MS-SQL Server / 基础类

怎么找到数据库的位置啊?请各位前辈指教一下?小的非常感谢!
先找到my.cnf文件,打开后看[data]下的datadir


2、进入mysql终端:
mysql>show variables like '%datadir%';

再不行全盘搜索: frm文件 ......

MYSQL连接的问题 - Java / Java SE

Java code:

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was51093 seconds ago.The last packet sent successfully to the server was 5 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号