Postgres 8.1

From NEOSYS Dev Wiki
Jump to navigationJump to search

Part 1: Downloading & Installing PostgresSQL

  1. Go to http://www.postgresql.org/
  2. In the search engine at the top right hand corner copy & paste postgresql-8.1.9-1.zip 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.
  3. Click the one pointed to you by the red arrow
    GetpgSQL1.jpg
    if not included, look for something similar, keeping in mind you need the postgresql-8.1.9-1.zip)
  4. Click on the link shown to you by the red arrow; "postgresql-8.2.5-1.zip"
    FTPbrowser.JPG
  5. Find the flag of the country you are in, and click the Ftp link under the flag.
  6. 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.
  7. Look in your download folder for postgresql-8.1.9-1.zip
  8. Right click on postgresql-8.1.9-1.zip click Extract to postgresql-v8.1.9-1.zip\
  9. Go to the folder you just extracted to in your download folder.
  10. 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.
  11. 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)
  12. This window is important, so don't miss any thing out.

PostgreSQL2.JPG

    • 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.
  1. In the next window type into the User name field any random password, as you will not have to remember it.
    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.
  2. Click yes:
    Accounterror.JPG
  3. Then click Next. Click Yes. Click Ok.
  4. 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.
  5. 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:
      Checkup.jpg
  6. In the next window, just click next.
  7. Then you come to a window called Enable contrib modules, tick Tsearch2 near the right hand side and click Next.
  8. Then to start the Installation click Next.

Part 2: Set-up & Configuration

  1. Go to your start menu, all programs, PostgreSQL 8.1, pgadmin III. Click the close button for the tips.
  2. 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.
  3. 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.
  4. On the right hand side of the window look for Login Roles (1), at the bottom of the list.
  5. Right click it and click the New Login Role.
  6. Type in NEOSYS into the name field
    Loginrole.JPG
  7. Type in a pass and make a note of it.