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