Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Help with Geo::IP output

by Anonymous Monk
on Jun 24, 2020 at 15:21 UTC ( #11118434=note: print w/replies, xml ) Need Help??

in reply to Help with Geo::IP output

Quite surprised there's no easy way. I couldn't use App::geoip because of the error below:

FATAL:  no pg_hba.conf entry for host "[local]", user "xxx", database "geoip", SSL off

While I have MySQL, I have never used PostgreSQL and I'm not familiar with it.

Replies are listed 'Best First'.
Re^2: Help with Geo::IP output
by marto (Cardinal) on Jun 24, 2020 at 15:24 UTC

    There is an easy way, use SQLite, see DATABASE linked from from dsn which I linked previously. You need to read the documentation for the tool.

    Update: typo, dns/dsn. Thanks Your Mother.

      The App::geoip page doesn't explain how to use it with SQLite. Ir only says it works with SQLite.

        dsn: "If the connection works, the tables used by this tool will be created if not yet present."

        Provide a working connection, the tool does literally everything else for you.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11118434]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-02-28 08:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found