Skip to content

irezaul/todo-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-go

A simply activity

Database

  • Installing PostgreSQL
$ sudo apt update

Then, install the Postgres package along with a -contrib package that adds some additional utilities and functionality:

$ sudo apt install postgresql postgresql-contrib
  • Ensure that the server is running using the systemctl start command:
sudo systemctl start postgresql.service
  • Switch over to the postgres account on your server by typing:
sudo -i -u postgres
  • You can now access the PostgreSQL prompt immediately by typing:
psql
  • Exit out of the PostgreSQL prompt by typing:
\q

Creating a New Database ( use semicolon must )

create database <dbname>;
  • check database list
\list
  • how to delete database ( use semicolon must )
drop database <dbname>;
  • Create a new user with password ( use semicolon must )
create user <username> with password 'pass';

Releases

No releases published

Packages

No packages published

Languages