In the process of installing the PG database, the installation directory and data storage directory and port will be selected, and you need to select Local, if you use the default , and set your own password to start the installation, the earlier progress is quite smooth, to the installation of database cluster, It takes a few minutes to prompt, and then a warning box appears, such as.
Click OK, you can install to the end, at the beginning there is no tube so much. But when I opened the PG database login, there was an error "PostgreSQL server is not listening!" ", resulting in a failure to connect to the PG database server. It's over, the server is not up, and nothing can be done.
So online to find ways, some said that it is necessary to shut down the firewall, some said that PostgreSQL Database server did not start, and some say that the 5432 port is occupied and so on, to go back and forth to try to solve the problem. The final suspicion is not their own software is not installed, so focus on the installation of the error, in the online search for reasons, a broad solution is: choose Local, uninstall the reload, I thought it could be successful. But, but, still failed ~ I again uninstall, and the installation directory of the files are all deleted, re-installed or not, no words Ah! So looking for a solution on the Internet, finally found a meaningful article: PostgreSQL installation failed. The article is in English, Chinese meaning I roughly say, is not installed in the default path, do not install in program files, uninstall after reloading in the C:\PostgreSQL path, the installation can be completed smoothly, there will be no fatal error, other non-fatal errors can be ignored. And on Pgadmin III right-click Change its Security property to "Everyone" permission Full Control, enter login can login successfully! ~ ~ in tears!
PS: There is a workaround, which is given by my colleague, I installed the 9.3 version of the problem, you can try to install a higher version, such as 9.5, perhaps 9.5 more stable.
Database Cluster failed to install PostgreSQL databases!