To create Local Database on your Termux
- Install the Postgresql Servers first to your
Termux.
initdb ~/pg
- Start the
Server
pg_ctl -D ~/pg start
- Create a username for your
databaseanything you want it to be:
createuser -P -s -e Your_Username
- Make sure you change
Your_Usernamsto what ever you want. - Now Let create
DatabaseUsername:
createdb -O Your_Username Your_Database
Note:You must change your username to the username you provided before and change your database to your new database name use any name you like also.