I am new to using PostgreSQL. How do I create a new database using only the command line interface (CLI) tool that comes packaged with the windows binary installation. Please note, I am using Windows 10 and PowerShell 7 if that is any relevance to the situation.
Using the command line interface (CLI)
psql --username=postgres --command="CREATE DATABASE databaseName"
Using the read-eval-print loop (REPL) shell
CREATE DATABASE databaseName
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.