Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > ab5a908e13fe5a9629846f341029f1bf > files > 19

kstocks-2.0.2-8mdk.i586.rpm

In order to use KStocks with the database you need to follow 
the upcoming steps :

1. login as root

2.  Switch to user postgres with the command : 
      su - postgres     

3. enter the following commands as postgres user. The first command 
   will create a user andy. You will have to use another name, if you do 
   not have a user named andy. Just replace all appearances of andy
   in the commands with the username you usually take for logging in.
   Please note that the user you will create has to exist and that it 
   is not possible to do this with the root user !! So if you are usually
   loggin in as "hans" run "createuser hans" instead of the following 
   command :

      createuser -d -U andy

    You will get a line :
      Enter user's postgres ID or RETURN to use unix user ID: xxx ->    
  
    It is not necessary to enter a ID, so just press RETURN.

   Now, the user andy can create a Postgres Database !! 

4. Now you have to switch to user andy and create the database for
   kstocks. The script install_update.sh does everything that is needed
   to install/update the database !
   Just run the following two commands to switch to user andy and
   to create the database.

     su - andy

     install_update.sh
 
5. Now start KStocks and go to Options->Configuration->DB Access
   Put the username in the LineEdit that you used to create the
   database (in the example I used andy !). The password is not
   required !! Press the ok button. Then Options->Connect to DB.

   If everything is OK you will get the message that, a connection
   to the DB has been established !!

That was all. Now you should have access to the database and the 
items of the database.


If there were problems installing the database or creating the database
for KStocks please send a report on what already did and please always
send along the exact error messages and the distribution (SuSE, Red Hat, 
Caldera, Debian, Slackware, Mandrake, Easy Linux, etc) + version that you 
are using.

Email : AndreasWuest@gmx.de
Please use "postgres" and/or "kstocks" as subject in your mail.