Export sql data to file
copy (select * from table-name) to '/tmp/cta.pl.list'
in root
dnf install postgresql-server postgresql-devel
service postgresql start
mkdir /home/pgdir
chown postgres:postgres /home/pgdir -R
chmod 777 /home/pgdir -R
su postgres
initdb -D /home/pgdir
pg_ctl -D /home/pgdir -l /home/pgdir/log start in root
dnf install postgresql-server postgresql-devel
service postgresql start
mkdir /home/pgdir
chown postgres:postgres /home/pgdir -R
chmod 777 /home/pgdir -R
su postgres
initdb -D /home/pgdir
Comments
Post a Comment