Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Help with Geo::IP output

by Anonymous Monk
on Jun 24, 2020 at 15:21 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found