How to create a PostgreSQL database

When you have PostgreSQL installed you can create a new database by opening the console with:
psql postgres
and then running the command CREATE DATABASE:
CREATE DATABASE databasename;

Don’t forget the semicolon ;

You’ll then see…


This content originally appeared on flaviocopes.com and was authored by flaviocopes.com

When you have PostgreSQL installed you can create a new database by opening the console with:

psql postgres

and then running the command CREATE DATABASE:

CREATE DATABASE databasename;

Don’t forget the semicolon ;

You’ll then see the newly created database by running the \l command.


This content originally appeared on flaviocopes.com and was authored by flaviocopes.com


Print Share Comment Cite Upload Translate Updates
APA

flaviocopes.com | Sciencx (2021-07-27T05:00:00+00:00) How to create a PostgreSQL database. Retrieved from https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/

MLA
" » How to create a PostgreSQL database." flaviocopes.com | Sciencx - Tuesday July 27, 2021, https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/
HARVARD
flaviocopes.com | Sciencx Tuesday July 27, 2021 » How to create a PostgreSQL database., viewed ,<https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/>
VANCOUVER
flaviocopes.com | Sciencx - » How to create a PostgreSQL database. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/
CHICAGO
" » How to create a PostgreSQL database." flaviocopes.com | Sciencx - Accessed . https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/
IEEE
" » How to create a PostgreSQL database." flaviocopes.com | Sciencx [Online]. Available: https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/. [Accessed: ]
rf:citation
» How to create a PostgreSQL database | flaviocopes.com | Sciencx | https://www.scien.cx/2021/07/27/how-to-create-a-postgresql-database/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.