org.postgresql.Driver.connect Connection error:
org.postgresql.util.PSQLException: Connection to localhost:5749 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections
Did you get a chance to check if portnumber 5749 is blocked. This seems to be the issue
I have checked the port number availability while installing the pega and its showed port number is available. if port number is a problem please guide me how to change port number wihtout un installing pega.
I don't know your issue got resolved or not, but it can be get solved on the following ways:
it seems somehow one folder called "data" not got created under "C:\PRPCPersonalEdition\pgsql\" , so i will suggest you can ask for this folder from any of your friend for whom PEGA getting started properly.
After getting that folder navigate to "C:\PRPCPersonalEdition\scripts\" this path and edit "pg_env.bat" file and see if this line is present or not "@SET PGDATA=%BASEPATH%pgsql\data" on 5th line, if its not present there you can mention it and after doing all this steps you can start the server. Hopefully it will resolve your issue.
Also from your logs it seems "pega_env.bat" this file not got created under "C:\PRPCPersonalEdition\pgsql\", this path. let me know your issue got fixed or not, othwerise i can provide you those files.