Topic: Cant read lastloginipv4

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: Ubuntu 10.04 LTS
- iRedMail version and backend (LDAP/MySQL): Pro 1.3.1 MySQL
- Any related log? Log is helpful for troubleshooting.

Hello I setup up tracking of User Last Login Date and IP Address using this FAQ
http://www.iredmail.org/forum/topic379- … tocol.html
Everything works and info is logged but I cant read lastloginipv4 using PHPMyAdmin, IP when written to db becomes like one number (integer) without any dots. How to read IP from there? Is there any other way to see this info?


Re: Cant read lastloginipv4

Reference: http://dev.mysql.com/doc/refman/5.0/en/ … tions.html

You need two MySQL functions:

INET_ATON()     Return the numeric value of an IP address
INET_NTOA()     Return the IP address from a numeric value

For example:

mysql> SELECT INET_NTOA(lastloginipv4) FROM ...


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: Cant read lastloginipv4

Thanks didn't know that.