About 78,600 results
Open links in new tab
  1. Create database from command line in PostgreSQL

    Mar 19, 2019 · 95 createdb is a command line utility which you can run from bash and not from psql. To create a database from psql, use the create database statement like so:

  2. Postgresql not creating db with “createdb” as superuser, yet not ...

    I am working with a fresh postgresql install, with 'postgres' super user. Logged in via: sudo -u postgres psql postgres=# createdb database postgres-# \\list List of

  3. cant use createdb command on bash terminal windows

    Jan 8, 2023 · when i am trying to create postgres database with bash terminal on windows 11, im using below commands; createdb 'test' or createdb -U postgres 'test' and nothing happens. i …

  4. postgresql - createdb: database creation failed: ERROR: permission ...

    May 2, 2017 · System accounts and Postgres accounts are different things, although unless you specify a Postgres username when you connect to the database (through utilities like psql, …

  5. Error while using createdb command postgresql on windows 10

    Nov 11, 2021 · After doing everything, when I used the createdb command directly from the terminal/powershell, it asked my the password which I had used to create the other user ( with …

  6. Granting a user account permission to create databases in …

    Oct 18, 2015 · How do I give a user account in PostgreSQL the ability to create and drop databases? Is there a way to do this with GRANT?

  7. What steps are required to setup PostgreSQL and create a db in …

    Sep 7, 2020 · From the PostgreSQL manual: createdb is a wrapper around the SQL command CREATE DATABASE. There is no effective difference between creating databases via this …

  8. createdb: could not connect to database template1: fatal: …

    Sep 7, 2020 · Second try: createdb -E utf8 -U CinemaHole -h localhost Movie Assuming CinemaHole is the user you really want to use. The connection that is not working: createdb -E …

  9. PostgreSQL error: Fatal: role "username" does not exist

    Aug 12, 2012 · 118 Installing postgres using apt-get does not create a user role or a database. To create a superuser role and a database for your personal user account: sudo -u postgres …

  10. psql cannot connect to local database after changing data directory

    Jul 15, 2022 · createdb: error: could not connect to database template1: could not connect to server: No such file or directory Is the server running locally and accepting