Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^13: Help with Geo::IP output

by hippo (Bishop)
on Jun 24, 2020 at 22:16 UTC ( [id://11118474]=note: print w/replies, xml ) Need Help??


in reply to Re^12: Help with Geo::IP output
in thread Help with Geo::IP output

geoip -Ddsn dbi:SQLite:geoip -w 103.2.106.33

That's not how to specify the DSN on the command line.

$ geoip -Ddbi:SQLite:geoip -w 103.2.106.33

might get you farther but since you haven't detailed how you created the database, who can say?

Replies are listed 'Best First'.
Re^14: Help with Geo::IP output
by Anonymous Monk on Jun 24, 2020 at 22:43 UTC

    I have never used SQLite so I'm totally new to it. At the command line, I entered:

    $ sqlite3 geoip SQLite version 3.7.17 2013-05-20 00:56:22 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .save geoip.db Error: unknown command or invalid arguments: "save". Enter ".help" fo +r help sqlite> .quit

    The command .save doesn't work so it seems I can't create a database.

      You first said:

      I created an SQLite database named "geoip"

      and now you've said:

      The command .save doesn't work so it seems I can't create a database.

      I think you ought to spend just a little time to find out which of these statements is true because they can't both be.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found