|
|
(7 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| ==Downloading and Installing PostgresSQL:== | | ==Downloading and Installing PostgresSQL:== |
|
| |
|
| ===Part 1: Downloading & Installing PostgresSQL=== | | === Postgres 8.3 === |
|
| |
|
| # Go to http://www.postgresql.org/
| | http://www.postgresql.org/ftp/binary/ |
| # In the search engine at the top right hand corner copy & paste <B>postgresql-8.1.9-1.zip</b> and press enter. You can also install newer patches like postgresql-8.1.11-1.zip but stay within the postgresql-8.1 versions unless you want to modify the Visual C++ project to point to the new locations.
| | http://www.enterprisedb.com/products/pgdownload.do |
| # Click the one pointed to you by the red arrow<br>[[Image:getpgSQL1.jpg]]<br>if not included, look for something similar, keeping in mind you need the <B>postgresql-8.1.9-1.zip</b>)
| |
| # Click on the link shown to you by the red arrow; "postgresql-8.2.5-1.zip" <br>[[Image:FTPbrowser.JPG]]
| |
| # Find the flag of the country you are in, and click the Ftp link under the flag.
| |
| # Now a window will pop up asking whether you want to save or run the installation program. Save it in your download folder, if you haven't created one do so. The purpose of having a Download file is that every time you download a big file you save it so that you don't have to waste your time finding the file and downloading it again. However with small files, there is no point in saving them because of the small amount of time they take to download.
| |
| # Look in your download folder for postgresql-8.1.9-1.zip
| |
| # Right click on postgresql-8.1.9-1.zip click Extract to postgresql-v8.1.9-1.zip\
| |
| # Go to the folder you just extracted to in your download folder.
| |
| # Double click on the file postgresql-8.1.msi, and to check whether you have the right version, look at the size, is it 134Kb.
| |
| # A window should have popped up, saying what language you want to use in the installation. Select your preferred language. (if you have any other windows close them down and SAVE your work)
| |
| # This window is important, so don't miss any thing out.<br>
| |
| [[Image:postgreSQL2.JPG]]<br>
| |
| #* Scroll down to Database drivers, and click on the small triangle pointing downwards, a small list of options will appear click "Entire feature will be unavailable".
| |
| #* Scroll to the very bottom to Development, now just like the other one click on the small triangle pointing downwards and again the options will appear, this time click "Entire feature will be installed on your local driver". Click Next.
| |
| # In the next window type into the User name field any random password, as you will not have to remember it.<br> If your reinstalling PostgreSQL, delete the existing account name; by going to Computer Management, System tools, Local Users & Groups and then users. Finally delete postgreSQL.<br>
| |
| # Click yes:<br>[[Image:accounterror.JPG]]<br>
| |
| # Then click Next. Click Yes. Click Ok.
| |
| # In the current window there are some drop down menus you MUST change:
| |
| #* The field next to Encoding, use the drop down menu to find UTF-8.
| |
| #* The field next to Locale, use the drop down menu to find your language.
| |
| # Type in a password and take a note of it.
| |
| #* IF you are reinstalling PostgreSQL then untick the box in the top left hand corner as shown in the picture below:<br>[[Image:checkup.jpg]]<br>
| |
| # In the next window, just click next.
| |
| # Then you come to a window called Enable contrib modules, tick Tsearch2 near the right hand side and click Next.
| |
| # Then to start the Installation click Next.
| |
|
| |
|
| ===Part 2: Set-up & Configuration===
| | X: drive below should be the same as the drive you build exodus otherwise the include files will not be found. |
|
| |
|
| # Go to your start menu, all programs, PostgreSQL 8.1, pgadmin III. Click the close button for the tips.
| | {| |
| # Double click on PostgreSQL database server 8.1 (Localhost:5432), and it will ask you for the password you took note of in Part1 of the exercise. Type it in.
| | |QUESTION |
| # On the right hand side of the window there are the files of the SQL Server. To make a new database right click on Database(1)and click the New Database option. Type in NEOSYS into the name field and click Ok.
| | |RESPONSE |
| # On the right hand side of the window look for Login Roles (1), at the bottom of the list.
| | |COMMENT |
| # Right click it and click the New Login Role.
| | |- |
| # Type in NEOSYS into the name field<br>[[Image:loginrole.JPG]]<br>
| | |Installation Directory |
| # Type in a pass and make a note of it.
| | |X:\Program Files\PostgreSQL\8.3 |
| | |NB Keep the directory structure even if you change the drive otherwise will have to modify build project folder settings. |
| | |- |
| | |Data Directory |
| | |X:\Program Files\PostgreSQL\8.3\data |
| | |Put this whereever you like |
| | |- |
| | |password for superuser "postgres"<br>AND windows service |
| | |yourpasshere |
| | |Invent your own and TAKE A RECORD BECAUSE YOU WILL BE NEEDING IT LATER. If reinstalling enter the existing postgress user pass or delete the user and let it be recreated |
| | |- |
| | |Port number the server should listen on |
| | |5432 |
| | |Exodus uses the default by default |
| | |- |
| | |Locale: |
| | |Default |
| | |- |
| | |Charset: |
| | |UTF8 for server and client |
| | |- |
| | |Run StackBuilder: |
| | |uncheck |
| | |} |
| | |
| | === Postgres 8.1 === |
| | |
| | [[Postgres 8.1]] |