Difference between revisions of "Manually create PGSQL service"
From IMSMA Wiki
(Created page with "{{Note | First verify that the service does not exist }} # Start the Command window / DOS prompt by e.g. choosing Run, type '''cmd''' and click on OK. Image:Manually creat...") |
|||
Line 1: | Line 1: | ||
{{Note | First verify that the service does not exist }} | {{Note | First verify that the service does not exist }} | ||
− | # Start the Command window / DOS prompt by e.g. | + | # Start the Command window / DOS prompt by e.g. search for ''cmd'', right-click and choose '''Run as administrator'''.<br/><br/> |
[[Image:Manually create service.png|500px|center]] | [[Image:Manually create service.png|500px|center]] | ||
− | + | <br/> | |
+ | <ol start="2"> | ||
+ | <li> Type ''cd..'' until you are at '''C:\''' (cd = change directory .. = one level up) | ||
+ | <li> Type ''cd imsmang'' | ||
+ | <li> Type ''cd pgsql'' | ||
+ | <li> Type ''cd bin'' | ||
+ | <li> Type ''pg_ctl register -N PGSQL -D "%IMSMA_HOME%\pgsql\data"'' and press Enter.<br/> | ||
+ | It is of cause possible to copy the text from here and paste it into the Command window by the right-click menu. | ||
+ | <li> If there where no error messages, type Exit and press Enter.<br/> | ||
+ | If there were error messages, one reason might be that the user does not have permission to create services. | ||
+ | <li> '''DO NOT START THE SERVICE''' | ||
+ | <li> Restart the computer ('''mandatory'''). | ||
+ | <li> Verify that the PGSQL service was started automatically. | ||
+ | </ol> | ||
{{NavBox Hub}} | {{NavBox Hub}} | ||
[[Category:NoPublic]] | [[Category:NoPublic]] | ||
[[Category:NAA]] | [[Category:NAA]] |
Revision as of 19:27, 23 October 2014
First verify that the service does not exist |
- Start the Command window / DOS prompt by e.g. search for cmd, right-click and choose Run as administrator.
- Type cd.. until you are at C:\ (cd = change directory .. = one level up)
- Type cd imsmang
- Type cd pgsql
- Type cd bin
- Type pg_ctl register -N PGSQL -D "%IMSMA_HOME%\pgsql\data" and press Enter.
It is of cause possible to copy the text from here and paste it into the Command window by the right-click menu. - If there where no error messages, type Exit and press Enter.
If there were error messages, one reason might be that the user does not have permission to create services. - DO NOT START THE SERVICE
- Restart the computer (mandatory).
- Verify that the PGSQL service was started automatically.