How to install postgresql in android device using Termux

Postgresql In Termux


To install in termux 

pkg install postgresql 

Create skeleton database

mkdir -p $PREFIX/var/lib/postgresql
initdb $PREFIX/var/lib/postgresql

Starting the database

pg_ctl -D $PREFIX/var/lib/postgresql start

Similarly stop the database using

pg_ctl -D $PREFIX/var/lib/postgresql stop

Create User

$ createuser --superuser --pwprompt yourUserName

Create your database:

$ createdb mydb

Open your database

$ psql mydb

You will now see the promt

mydb=#

-Ashitosh Ghate

Comments

  1. wanted an ethical hacker to help me spy on my Husband and served as a personal investigator. Literally, I met him on a dating site and there used to be trust but now, he locks out his WhatsApp, PC and phone. So, there are trust issues. I got an hacker who helped me bypass his phone and got it cloned. I get access to activities like Facebook, Email, WhatsApp, calls, Skype and others. I’m sure someone out there is looking for how to solve his relationship problems, just contact ( hackanonymously0617 @ gmail com ) or text +1 318 228 1889

    ReplyDelete

Post a Comment

Popular Posts