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