visitlog表里存的IP是看不出来IP地址的,

PIWIK FAQ:

http://piwik.org/faq/how-to/faq_158/

How do I select IP addresses or Visitor ID directly from the database?

SELECT inet_ntoa(conv(hex(location_ip), 16, 10)) as ip, conv(hex(idvisitor), 16, 10) as visitorId FROM piwik_log_visit;


可以看出来,地址和idvistor都是用16进制存的。16进制转换为10进制,再long2ip.com 在线转换一下就可以看到真实IP了。