dbTalk Databases Forums  

Cannot connect to database using dbisql on mac - snow leopard

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Cannot connect to database using dbisql on mac - snow leopard in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VBG
 
Posts: n/a

Default Cannot connect to database using dbisql on mac - snow leopard - 01-08-2011 , 11:27 PM






I can connect to SQLAnywhere database "mydb" using dbisql as along as
I don't use localhost or any other name that is assigned to my local
machine. As soon as I add -host parameter, it stops connecting as
shown below.
However to connect through JDBC I need hostname hence I am stuck
without it.

Please assist.


MacBookPro:~ usr$ dbisql -nogui -c
"Server=sungard;DBN=mydb;UID=admin;PWD=admin"
(admin)> quit /*** successful **/

MacBookPro:~ usr$ dbisql -nogui -c
"Server=sungard;DBN=mydb;UID=admin;PWD=admin" -port 2638
(admin)> quit /*** successful **/

MacBookPro:~ usr$ dbisql -nogui -c
"Server=sungard;DBN=mydb;UID=admin;PWD=admin" -port 2638 -host
localhost
Could not connect to the database.
Database server not found
SQLCODE=-100, ODBC 3 State="08001"
(Not Connected)> /*** failed **/

Reply With Quote
Reply




Thread Tools
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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.