Archive for August, 2010:

Best way to store IP addresses in MySQL

By David Pratt / Tags: , / 26 Comments » / Published: 10-08-10

It’s tempting to store IP addresses in a database as a varchar of length 15 in the absence of a dedicated IPv4 field type in mysql, but that isn’t the most efficient way of doing so…