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

首頁 > 數據庫 > MySQL > 正文

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

2024-07-24 13:02:27
字體:
來源:轉載
供稿:網友
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
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 讷河市| 福泉市| 新泰市| 荃湾区| 潼关县| 新乐市| 襄城县| 新乡市| 郓城县| 日照市| 明溪县| 龙泉市| 永修县| 容城县| 东乡县| 丰原市| 泰安市| 永川市| 饶阳县| 济阳县| 陆川县| 安泽县| 通许县| 红原县| 阿克苏市| 松滋市| 阿瓦提县| 新和县| 庐江县| 昭平县| 澄迈县| 宜州市| 淄博市| 海林市| 肇州县| 黄龙县| 资兴市| 和林格尔县| 偃师市| 金昌市| 崇仁县|