GithubHelp home page GithubHelp logo

Comments (15)

ochawkeye avatar ochawkeye commented on July 20, 2024

Not sure I remember the syntax of the top of my head, but it appears to me
that toy are trying to connect to a db named 'postgres' with user named
'nfldb'.

In the wiki my example showed
'psql.exe -U nfldb nfldb < c:\Users\Ben\Down...' which was connecting to db
'nfldb' with user 'nfldb'.

psql.exe -U
On Jul 31, 2014 9:30 PM, "DFSReport" [email protected] wrote:

I have been using the python version of nfldb for some time now. I am
trying to install nfldb postgresql database on windows and have gotten to
step 10 of the windows installation instructions. I had previously done the
instructions under a new nfldb user but when i created that user in my
command prompt all roles were set to No so I was not able to create
databases or anything and was getting an access is denied message when
running step 10 of the installation for windows. I went through the entire
installation steps again but built the database under super user postgres.
When I get to step 10 to import the nfldb.sql file into postgresql database
I get the same access is denied message. I am under the superuser role so
unsure why I would be getting this message again? Any help would be greatly
appreciated.

[image: image]
https://cloud.githubusercontent.com/assets/7415081/3774169/c26c86f0-1923-11e4-97a4-16f33b0e680d.png


Reply to this email directly or view it on GitHub
#37.

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

I gotta quit commenting before getting a chance to review what has been said. Scratch what I said. I'm going to install on a fresh system tonight to see if I can reproduce.

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

Thank you. I appreciate it. I will try doing the same on a different system
that has windows 8.

On Thu, Jul 31, 2014 at 9:45 PM, ochawkeye [email protected] wrote:

I gotta quit commenting before getting a chance to review what has been
said. Scratch what I said. I'm going to install on a fresh system tonight
to see if I can reproduce.


Reply to this email directly or view it on GitHub
#37 (comment).

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

Are you able to log in to the nfldb database with any user?
Here are my current users and roles:
image

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

Yes I only have one role but I am able to log in as postgres

[image: Inline image 1]

On Thu, Jul 31, 2014 at 10:01 PM, ochawkeye [email protected]
wrote:

Are you able to log in to the nfldb database with any user?
Here are my current users and roles:
[image: image]
https://cloud.githubusercontent.com/assets/2996205/3774314/fe8dee40-1927-11e4-834a-2607c29760d5.png


Reply to this email directly or view it on GitHub
#37 (comment).

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

Just completed installing on a fresh system. Here is every step in all its glory:
PostgreSQL install (Windows)

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

This is great Thank you! I will run through these steps and update if I run
into any issues.

On Thu, Jul 31, 2014 at 11:15 PM, ochawkeye [email protected]
wrote:

Just completed installing on a fresh system. Here is every step in all its
glory:
PostgreSQL install (Windows)
https://github.com/BurntSushi/nfldb/wiki/Detailed-Windows-PostgreSQL-installation


Reply to this email directly or view it on GitHub
#37 (comment).

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

So I tried your new steps on a new system that runs windows 8.1. I did get to the same step to import the downloaded data into my created database. I did get the same Access is Denied. Message. Am I missing something when setting up the nfldb role that allows me to set the role privileges? I thought I was running everything as an administrator but maybe I am missing something with that as well? I will continue to play around with it.

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

Were all steps up until that import step 21 successful? Specifically, were you able to complete step 18? psql.exe -U nfldb nfldb

Just spit-balling, but is it possible the Access is denied message not actually because user nfldb does not have proper privileges but instead because the Windows user is not allowed to access the location of the file nfldb.sql?

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

AHHH! I just repeated your problem. You're not importing the unzipped nfldb.sql file. You're trying to import the folder that you unzipped!

D:\Program Files (x86)\PostgreSQL\9.3\bin>psql.exe -U nfldb2-test nfldb-2nd-try
< d:\Downloads\nfldb.sql
Access is denied.

D:\Program Files (x86)\PostgreSQL\9.3\bin>psql.exe -U nfldb2-test nfldb-2nd-try
< d:\Downloads\nfldb.sql\nfldb.sql
Password for user nfldb2-test: xxxxxx

SET
SET
SET
SET
SET
SET
SET
SET
CREATE DOMAIN
CREATE TYPE
CREATE DOMAIN
CREATE TYPE
CREATE TYPE

Use the second one!

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

Oh wow I feel like a moron. I knew it had to be something small that I was
overlooking. I will try this as soon as I get home but I am definitely
thinking this was the issue. I do appreciate your help! Both you and
burntsushi are awesome for putting this together.

On Fri, Aug 1, 2014 at 9:39 AM, ochawkeye [email protected] wrote:

AHHH! I just repeated your problem. You're not importing the unzipped
nfldb.sql file. You're trying to import the folder that you unzipped!

D:\Program Files (x86)\PostgreSQL\9.3\bin>psql.exe -U nfldb2-test nfldb-2nd-try
< d:\Downloads\nfldb.sql
Access is denied.

D:\Program Files (x86)\PostgreSQL\9.3\bin>psql.exe -U nfldb2-test nfldb-2nd-try
< d:\Downloads\nfldb.sql\nfldb.sql

Use the second one!


Reply to this email directly or view it on GitHub
#37 (comment).

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

All credit goes to @BurntSushi. Hell, I don't even know how to hardly use the thing! I'm still stuck in my old nflgame ways, though I vow to convert over to nfldb before week 1.

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

@ochawkeye Don't sell yourself short. You're single handedly responsible for getting the Windows users up and running. :D (Which is, what, like 90% of the user base?)

(Let me know if you want help converting to nfldb.)

from nfldb.

beronbrown avatar beronbrown commented on July 20, 2024

I did get it working. I appreciate all of your help. I am excited to find some time to play around with it in the next few weeks. Thanks for both of your hard work on this.

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

@DFSReport 👍

from nfldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.