The Internet works through protocols such as IPv4 and IPv6, having 32 bits and 128 bits, which are numerical combinations that establish connections between computers. I have a device table, tbl_device
, in which I need to send status of the device at one time or another. The status includes the location of the IP
of the device, however I was in doubt in what format to use, if TEXT
, VARCHAR
, CHAR
etc. in the database.
What would be the ideal type to save IPv4 and / or IPv6 in MySQL?