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

首頁 > 數據庫 > MySQL > 正文

Mysql 常見問題匯總

2024-07-24 12:41:55
字體:
來源:轉載
供稿:網友
  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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宁夏| 三台县| 额尔古纳市| 彰化县| 苗栗县| 田阳县| 丽水市| 白山市| 无为县| 冕宁县| 凤冈县| 凭祥市| 宁波市| 莆田市| 大名县| 堆龙德庆县| 湛江市| 上蔡县| 苍梧县| 赣榆县| 岗巴县| 江阴市| 务川| 准格尔旗| 海兴县| 虎林市| 苍溪县| 淮南市| 沙雅县| 拉萨市| 台北县| 白玉县| 江陵县| 高淳县| 盐边县| 黑河市| 汉川市| 大关县| 竹北市| 从江县| 邵阳市|