Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate from PostgreSQL without socket access? #43

Closed
gcavalcante8808 opened this issue Apr 12, 2017 · 1 comment
Closed

How to generate from PostgreSQL without socket access? #43

gcavalcante8808 opened this issue Apr 12, 2017 · 1 comment
Labels

Comments

@gcavalcante8808
Copy link

Hello Folks,

I'm trying to generate models from a Database that is remote, but I'm receiving the following error:

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

The command used to produce the error was:

sqlacodegen postgresql+psycopg2:///moodle:moodle@172.20.0.2/moodle

Thanks in Advance.

@agronholm
Copy link
Owner

You have on / too many in the URI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants