Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 24, 2006, 12:53 PM   #1
sk3pt1c
macrumors 6502a
 
Join Date: Nov 2005
Location: a simulacrum
unix help needed (postgreSQL)

hi there,

i need to access my university's database and see my tables that i created in a lab exercise we had. we're learning sql and we created some basic tables today.i just finished installing postgreSQL, which is what we'll be using for the rest of the semester,but i don't know what command i should use to try to connect to their server
i tried doing

ssh <server name>

but it asked for a password and when i entered it i got denied entry

am i using the right command or not?
__________________
Vi Veri Veniversum Vivus Vici
Macbook Pro 15" Retina - sold to buy a scooter so now back to my old Pro 17" :/
sk3pt1c is offline   0 Reply With Quote
Old Jan 24, 2006, 01:20 PM   #2
thegreatunknown
macrumors regular
 
Join Date: Jan 2006
for help type "man <command>" in your command line... for example "man ssh" will give you details about how to use it.

the most probable answer for your problem is that you are logging into a secured server meaning you need a log in name and password. by default ssh uses whatever the account name is on the computer you are signing in from as your log in name. so an easy way to use a different log in name is:

ssh login@servername

it will ask for you password and you just type it in.

hope this helps.
thegreatunknown is offline   0 Reply With Quote
Old Jan 24, 2006, 01:21 PM   #3
bousozoku
Retired (Moderator emeritus)
 
Join Date: Jun 2002
Location: Gone but not forgotten.
That should get you to the server where your files exist but it won't likely access the database.

You might try this documentation to get to know more about what the database server does and how to access it.
bousozoku is offline   0 Reply With Quote
Old Jan 24, 2006, 01:28 PM   #4
thegreatunknown
macrumors regular
 
Join Date: Jan 2006
whoops thanks bous... I answered the wrong question. guess I need to read closer.
thegreatunknown is offline   0 Reply With Quote
Old Jan 24, 2006, 02:26 PM   #5
lexfuzo
macrumors 6502
 
Join Date: Mar 2005
Location: The heart of Europe
Quote:
Originally Posted by sk3pt1c
hi there,

i need to access my university's database and see my tables that i created in a lab exercise we had. we're learning sql and we created some basic tables today.i just finished installing postgreSQL, which is what we'll be using for the rest of the semester,but i don't know what command i should use to try to connect to their server
i tried doing

ssh <server name>

but it asked for a password and when i entered it i got denied entry

am i using the right command or not?
Use psql (command-line). It is part of the PostgreSQL installation.
`man psql` will help you.
You can use it to access your local DB or a remote one if the remote allows that.
If you manage to login on the remote server with ssh you can use psql there. Note that the passswords for login and database access may be different.

You could take a look at pgadmin3, too:
http://www.pgadmin.org
__________________
Proud owner of an iBook 12/1.33
Soon upgrading to a MacBook Con

Last edited by bousozoku; Jan 24, 2006 at 02:56 PM. Reason: posts next to each other
lexfuzo is offline   0 Reply With Quote
Old Jan 25, 2006, 05:22 AM   #6
sk3pt1c
Thread Starter
macrumors 6502a
 
Join Date: Nov 2005
Location: a simulacrum
thanks people

sorted
__________________
Vi Veri Veniversum Vivus Vici
Macbook Pro 15" Retina - sold to buy a scooter so now back to my old Pro 17" :/
sk3pt1c is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Unix Help Needed to Fix HD Kashchei Mac OS X 4 Jul 27, 2010 09:09 PM
Dear UNIX geeks: need help with SSH yamadataro Mac Help/Tips 8 Jan 10, 2003 12:53 PM
root user problems UNIX HELP PLEASE mnkeybsness Mac Help/Tips 6 Oct 13, 2002 07:11 PM
unix help please jelloshotsrule Mac Help/Tips 8 May 3, 2002 12:53 PM


All times are GMT -5. The time now is 11:15 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC