Difference between revisions of "Manually create PGSQL service"
From IMSMA Wiki
Line 6: | Line 6: | ||
<br/> | <br/> | ||
<ol start="2"> | <ol start="2"> | ||
− | <li> Type ''cd..'' until you are at '''C:\''' (cd = change directory .. = one level up) | + | <li> Type ''cd..'' and press Enter until you are at '''C:\''' (cd = change directory .. = one level up). |
− | <li> Type ''cd imsmang'' | + | <li> Type ''cd imsmang'' and press Enter. |
− | <li> Type ''cd pgsql'' | + | <li> Type ''cd pgsql'' and press Enter. |
− | <li> Type ''cd bin'' | + | <li> Type ''cd bin'' and press Enter. |
<li> Type ''pg_ctl register -N PGSQL -D "%IMSMA_HOME%\pgsql\data"'' and press Enter.<br/> | <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. | It is of cause possible to copy the text from here and paste it into the Command window by the right-click menu. |
Revision as of 10:18, 18 July 2015
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.. and press Enter until you are at C:\ (cd = change directory .. = one level up).
- Type cd imsmang and press Enter.
- Type cd pgsql and press Enter.
- Type cd bin and press Enter.
- 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 or that you did not start the Command window as administrator. - DO NOT START THE SERVICE
- Restart the computer (mandatory).
- Verify that the PGSQL service was started automatically.
You need to be at the C-drive in the order to follow these instructions and if your Command window starts at another drive than C-drive then type C: to change to the C-drive. |