Mysql 错误问题汇总(不断更新中)
2012-07-17 23:23
645 查看
1、Mysql errono 1005 : 主外键不是完全一致 , 请检查如下几点:
a、字段是否存在
b、类型是否一致(注意unsigned , powerdesign 生成问题)
c、数据库引擎是否一致
d、字符编码是否一致
e、windows平台下注意修改lower_case_table_names = 0, windows本身不区分文件大小写,改为0之后就区分了可能造成找不到引用的表
2、Mysql errono 121: 外键约束名称重复
3、记录 Mysql WorkBench 中单词缩写意义:
PK: primary key (column is part of a pk)
NN: not null (column is nullable)
UQ: unique (column is part of a unique key)
AI: auto increment (the column is auto incremented when rows are inserted)
BIN: binary (if dt is a blob or similar, this indicates that is binary data, rather than text)
UN: unsigned (for integer types, see docs: “10.2. Numeric Types”)
ZF: zero fill (rather a display related flag, see docs: “10.2. Numeric Types”)
4、mysql 权限设置
//添加远程主机访问MYSQL root权限
insert into user(host,user,password) values('%','root',PASSWORD('root'));
//root 权限授权
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
//更新权限设置
flush privileges;
5、防火墙设置
//打开端口
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
//保存
/etc/rc.d/init.d/iptables save
//查看状态
/etc/init.d/iptables status
6、开机自动运行(实现类似Windows服务)
/sbin/chkconfig --level 2345 mysqld on
/sbin/chkconfig --list
结果如下:
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
a、字段是否存在
b、类型是否一致(注意unsigned , powerdesign 生成问题)
c、数据库引擎是否一致
d、字符编码是否一致
e、windows平台下注意修改lower_case_table_names = 0, windows本身不区分文件大小写,改为0之后就区分了可能造成找不到引用的表
2、Mysql errono 121: 外键约束名称重复
3、记录 Mysql WorkBench 中单词缩写意义:
PK: primary key (column is part of a pk)
NN: not null (column is nullable)
UQ: unique (column is part of a unique key)
AI: auto increment (the column is auto incremented when rows are inserted)
BIN: binary (if dt is a blob or similar, this indicates that is binary data, rather than text)
UN: unsigned (for integer types, see docs: “10.2. Numeric Types”)
ZF: zero fill (rather a display related flag, see docs: “10.2. Numeric Types”)
4、mysql 权限设置
//添加远程主机访问MYSQL root权限
insert into user(host,user,password) values('%','root',PASSWORD('root'));
//root 权限授权
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
//更新权限设置
flush privileges;
5、防火墙设置
//打开端口
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
//保存
/etc/rc.d/init.d/iptables save
//查看状态
/etc/init.d/iptables status
6、开机自动运行(实现类似Windows服务)
/sbin/chkconfig --level 2345 mysqld on
/sbin/chkconfig --list
结果如下:
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
您可能感兴趣的文章:
- mysql服务无法启动报错误1067解决方法(mysql启动错误1067 )
- mysql启动的error 2003和1067错误问题解决方法
- Mysql数据库错误代码中文详细说明
- MySQL启动1053错误解决方法
- 解决mysql 1040错误Too many connections的方法
- mysql Out of memory (Needed 16777224 bytes)的错误解决
- mysql服务1067错误多种解决方案分享
- mysql 提示INNODB错误的解决方法
- MySQL 1303错误的解决方法(navicat)
- mysql 发生系统错误1067的解决方法
- MySql 安装时的1045错误
- mysql常见错误集锦
- MySQL 1067错误解决方法集合
- MySQL错误代码大全
相关文章推荐
- Mysql 错误问题汇总(不断更新中)
- Mysql 问题汇总(不断更新中...)
- linux编译问题汇总(不断更新)
- oracle实践--问题汇总(不断更新)
- qtp 问题汇总(不断更新)<一>
- JQuery兼容IE6问题汇总(不断更新)
- cocos2dx3.2 android打包apk问题汇总(不断更新。。。)
- qtp 问题汇总(不断更新)<二>
- Wince 开发问题汇总(更新中勿拍,有错误请指正谢谢)
- Spring Boot开发问题汇总(不断更新中)
- MySQL删除更新数据时报1175错误的问题
- VC6.0 移植到 VS2005 问题汇总(不断更新中)
- qtp 问题汇总(不断更新)<…
- 【FPGA】FPGA错误汇总 ( 不断更新... )
- IOS开发错误问题汇总(更新中)
- C#+ AE 注意问题汇总(不断更新)
- 小问题 汇总(不断更新)
- Oracle9i 问题汇总--不断更新中
- Android studio问题汇总(不断更新)
- MFC开发常见问题汇总(不断更新)