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

    Mar 19, 2019 · As some of the answers point out, createdb is a command line utility that could be used to create database. Assuming you have a user named dbuser, the following command …

  2. PostgreSQL: Documentation: 17: CREATE DATABASE

    May 8, 2025 · To create a database, you must be a superuser or have the special CREATEDB privilege. See CREATE ROLE. By default, the new database will be created by cloning the …

  3. Create Database in PostgreSQL using psql and pgAdmin

    PostgreSQL database can be created using psql (SQL Shell) and pgAdmin. Use the CREATE DATABASE command in psql to create a new database in PostgreSQL. Let's create the 'HR' …

  4. PostgreSQL – Create Database - GeeksforGeeks

    Oct 17, 2024 · Creating a database in PostgreSQL can be done using the CREATE DATABASE SQL statement in the psql shell or via the createdb command-line utility. Additionally, for users …

  5. How to create a PostgreSQL database and users using psql and …

    Jan 24, 2023 · CREATE DATABASE: This is the SQL syntax used to initiate the request for creating the database. <database name>: the name of the database that you want to create, …

  6. How to Create a Postgres Database From Command Line

    Jul 31, 2023 · PostgreSQL supports various commands to create a database from the command line, including “createdb” and “CREATE DATABASE”. For instance, executing the “CREATE …

  7. PostgreSQL/Postgres Create Database: How to Create Example

    Sep 26, 2024 · You can create a database using the psql Windows Command Line (SQL Shell) with the command ” CREATE DATABASE databasename; You can also create a database …

  8. How to Create a Database in PostgreSQL: Your Simple Step-by …

    Sep 22, 2023 · In this article, we’ll go step by step on how to create a new database using PostgreSQL. We’ll start from scratch – installation of the software itself – move onto setting up …

  9. CREATE DATABASE in PostgreSQL: A Complete Guide

    Apr 30, 2025 · In this article, you learned how to use CREATE DATABASE in PostgreSQL by exploring its syntax and seeing it in action through a couple of examples.. While you can run …

  10. PostgreSQL Create Database - Online Tutorials Library

    PostgreSQL provides two ways of creating a new database −. Using CREATE DATABASE, an SQL command. Using createdb a command-line executable. This command will create a …

  11. Some results have been removed
Refresh