Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Why can't I connect to my pgsql database from another language?

$
0
0

Sorry if the question is stupid but I'm learning SQL and I've searched for days without a solution. Basically using PostgresSQL from CMD works perfectly, I can create the database, can connect, create tables, insert modify, etc. The problem arises when recently I've tried to manipulate my database from another language (tried with c# and python) but when I try the connection I get the error:database 'Library' does not exist.

I know that's not the case because of course it's in my computer, but also if i change the correct password to an incorrect one in my connection line such as this:

NpgsqlConnection conn = new NpgsqlConnection("Server = localhost; " +"User Id= admin; Password = wrongpass; Database =Biblioteca");

I instead get the error:

password authentication failed for user "admin"

Which tells me that the program can indeed tell the database exists, it just choses to ignore for some reason, am I doing something wrog? Need every help i can get

Note: I'm working on Windows.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>