postgrepsql installation failed

Windows environment postgrepsql installation fails "Failed to load sql modules into the database cluster."

insert image description here
Note: This error will cause the database to fail to be created, so it cannot be ignored. I ignored the installation several times and found that the database could not be created. Looking at the service list, the process of postgresql cannot be found. Then an error was reported when uninstalling (the general meaning is that the uninstallation failed without this service).
I tried to change the ordinary file as the installation directory, but it didn't work;
and then running it as an administrator also didn't work
. Finally, the following method was used to solve it:

solution:

1. Create a windows user to ensure that it is consistent with the super administrator user name "postgres" of the pg library and grant administrator privileges.
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
Insert the picture description here insert image description here
and enter the account password to complete the creation. After creation, change to administrator privileges (the default is ordinary administrators) )

2. Set postgresql installation directory permissions for the created user
Right-click on the installation directory folder - "Properties -" Security - "Edit -" Add - "Enter the object name to select the input box and enter "postgres" - "Check Name - "OK to complete the permission addition
insert image description here

3. Restart the computer to run and install postgresql as an administrator

Guess you like

Origin blog.csdn.net/weixin_41377835/article/details/125430069