1

What is the best field type to use in a MySQL database for storing both IPv4 and IPv6 IP addresses?

I don't need to do any processing on them, just store them

fightstarr20
  • 11,682
  • 40
  • 154
  • 278

1 Answers1

1

I use String for storing IP ( I put IP in a json and I store it with type String in my db)

Yiao SUN
  • 908
  • 1
  • 8
  • 26