Unable to connect to Vertica using Powershell
Hello,
I have been trying to connect to Vertica using Powershell as the client.When I plug in the command below Powershell just hangs, as if its processing something but never completes. I have tried this in CMD prompt and it works fine.
Has anyone experienced this issue before?
PS C:\Users> vsql -h 010.010.1.010 -d MY_DATABASE
0
Comments
Hi,
Works for me in PS (Windows 7):
For the server IP address, why are you using "010.010.1.010" instead of "10.10.1.10"?
Note you can get rid of the console code page warning message by changing the code page...
That IP address is just a random number. I cannot imagine anyone who would use that convention.
I am able to access Vertica using TOAD data tools and CMD Prompt. Do you have any idea why this would hang? Perhaps I need to install something?
Thank you for your response!
Where is vsql installed? Typically is installed in C:\Program Files\Vertica Systems\VSQL64.
So I can run it like this:
PS & 'C:\Program Files\Vertica Systems\VSQL64\vsql' -h 10.10.1.10 -d MY_DATABASE
Note that if you pass in a bogus IP where Vertica is not running it may take a minute for vsql to report a connection timeout. For example, I ran the above command in PowerShell, and it took about 18 seconds for me to get the "vsql: could not connect to server:..." message. You might think its hanging.