① 修改 mysql 安装目录下的 my.ini
修改 default-character-set=latin1
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]
[mysql]
# 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
#Path to installation directory. All paths are usually resolved relative to this.
#Path to the database root
# 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
你再尝试使用 insert into 插入一条记看看...
mysql读音:英[ma? es kju: el]、美[ma? ?s kju ?l].?
MySQL是一个关系型数据库管理系统,由瑞典MySQL AB?公司开发,属于?Oracle?旗下产品.MySQL 是最流行的关系型数据库管理系统之一,在?WEB?应用方面,MySQL是最好的?RDBMS?(Relational Database Management System,关系数据库管理系统) 应用软件之一.
使用注意事项:
在 MySQL 数据库中,进行中文排序和查找的时候,对汉字的排序和查找结果是错误的.这种情况在 MySQL 的很多版本中都存在.如果这个问题不解决,那么 MySQL 将无法实际处理中文.
Mysql数据库不能插入中文,一插入就报错,是代码输入错误造成的,解决方法如下:
①.、首先使用insert语句,把数据插入到数据库表里.
这个词直译不了,可以说是一种免费的跨平台的数据库系统.
下面引自百度百科,需要其它什么资料百科上基本都有.
MySQL这个名字是怎么来的已经不清楚了.基本指南和大量的库和工具带有前缀"my"已经有10年以上,而且不管怎样,MySQL AB创始人之一的Monty Widenius的女儿也叫My.这两个到底是哪一个给出了MySQL这个名字至今依然是个密,包括开发者在内也不知道.
MySQL的海豚标志的名字叫"sakila",它是由MySQL AB的创始人从用户在"海豚命名"的竞赛中建议的大量的名字表中选出的.获胜的名字是由来自非洲斯威士兰的开源软件开发者Ambrose Twebaze提供.根据Ambrose所说,Sakila来自一种叫SiSwati的斯威士兰方言,也是在Ambrose的家乡乌干达附近的坦桑尼亚的Arusha的一个小镇的名字.
MySQL最初的开发者的意图是用mSQL和他们自己的快速低级例程(ISAM)去连接表格.不管怎样,在经过一些测试后,开发者得出结论:mSQL并没有他们需要的那么快和灵活.这导致了一个使用几乎和mSQL一样的API接口的用于他们的数据库的新的SQL接口的产生,这样,这个API被设计成允许为用于mSQL而写的第三方代码更容易移植到MySQL.
在你的
my.cnf
里面就可以设置的.
默认的mysql编码居然是瑞典码,很是蹩脚.
在MySQL数据库中,
字段或列的注释是用属性comment来添加.
创建新表的脚本中,
可在字段定义脚本中添加comment属性来添加注释.
示例代码如下:
create table test(
id int not null default 0 comment '用户id'
)