Mysql 毛病成績匯總(赓續更新中)。本站提示廣大學習愛好者:(Mysql 毛病成績匯總(赓續更新中))文章只能為提供參考,不一定能成為您想要的結果。以下是Mysql 毛病成績匯總(赓續更新中)正文
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