If for some reason you are not prompted for a password when issuing these commands, you can use the -W option, leading to these two command alternatives: If you need to log into a Postgres database on a server named myhost, you can use this Postgres login command: If you are logged into the same computer that Postgres is running on you can use the following psql login command, specifying the database ( mydb) and username ( myuser): Let's take a look at a few psql command line options you can use. To log into a Postgres database from the command line, use the psql command. Postgres login FAQ: How do I log into a Postgres database from the command line? You can now hire Alvin Alexander for small Scala side projects!Ĭontact me at (al) at valleyprogramming (dot) com for details.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |