netmask cheatsheet

bit 8 7 6 5 4 3 2 1 value 128 64 32 16 8 4 2 u /mask /24 /25 /26 /27 /28 /29 /30 /31 /32 hosts 254 126 62 30 14 6 2 mask 128 192 224 240 248 252 254 255

create a new mysql db & user and grant privs

mysql> create database wombat; Query OK, 1 row affected (0.00 sec) mysql> grant all privileges on wombat.* to wombat@localhost identified by 'wombat'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)