国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 數(shù)據(jù)庫(kù) > MySQL > 正文

Mysql 錯(cuò)誤問題匯總(不斷更新中)

2020-01-18 23:59:21
字體:
供稿:網(wǎng)友
1、Mysql errono 1005 : 主外鍵不是完全一致 , 請(qǐng)檢查如下幾點(diǎn):

a、字段是否存在
b、類型是否一致(注意unsigned , powerdesign 生成問題)
c、數(shù)據(jù)庫(kù)引擎是否一致
d、字符編碼是否一致
e、windows平臺(tái)下注意修改lower_case_table_names = 0, windows本身不區(qū)分文件大小寫,改為0之后就區(qū)分了可能造成找不到引用的表

2、Mysql errono 121: 外鍵約束名稱重復(fù)

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 權(quán)限設(shè)置
//添加遠(yuǎn)程主機(jī)訪問MYSQL root權(quán)限
insert into user(host,user,password) values('%','root',PASSWORD('root'));
//root 權(quán)限授權(quán)
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
//更新權(quán)限設(shè)置
flush privileges;

5、防火墻設(shè)置
//打開端口
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
//保存
/etc/rc.d/init.d/iptables save
//查看狀態(tài)
/etc/init.d/iptables status

6、開機(jī)自動(dòng)運(yùn)行(實(shí)現(xiàn)類似Windows服務(wù))
/sbin/chkconfig --level 2345 mysqld on
/sbin/chkconfig --list
結(jié)果如下:
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 大余县| 奎屯市| 凤庆县| 涞源县| 沙田区| 布拖县| 横峰县| 长白| 和龙市| 莒南县| 都昌县| 桦南县| 南昌市| 宜阳县| 彭州市| 信丰县| 无为县| 武功县| 枣阳市| 海原县| 阿拉善左旗| 乐东| 睢宁县| 安达市| 交口县| 秭归县| 东丽区| 安福县| 满洲里市| 利辛县| 蒲城县| 大名县| 进贤县| 天全县| 昌邑市| 阜平县| 资中县| 弋阳县| 北票市| 会东县| 陆河县|