[Vertica][VJDBC](3781) FATAL: Invalid username or password

Moderator: NorbertKrupa

Post Reply
jerald
Newbie
Newbie
Posts: 7
Joined: Wed Nov 12, 2014 11:59 am

[Vertica][VJDBC](3781) FATAL: Invalid username or password

Post by jerald » Thu Nov 13, 2014 6:57 pm

Code: Select all

Class.forName("com.vertica.jdbc.Driver");
        String serverName = "**.***.*.*";
        String portNumber = "5433";
        String sid = "mydb";
        String url = "jdbc:vertica://"+serverName+":"+portNumber+"/mydb";
        String username = "mydb";
        String password = "myd";
        Connection conn = DriverManager.getConnection(url, username, password);
while i'm trying to connect i'm getting.
[Vertica][VJDBC](3781) FATAL: Invalid username or password

i create database user mydb and given password mydb,

what will be the ERROR please help me out...

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: [Vertica][VJDBC](3781) FATAL: Invalid username or passwo

Post by scutter » Thu Nov 13, 2014 9:04 pm

Is that code snippet accurate?

String password = "myd";

You said the password is mydb?
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

jerald
Newbie
Newbie
Posts: 7
Joined: Wed Nov 12, 2014 11:59 am

Re: [Vertica][VJDBC](3781) FATAL: Invalid username or passwo

Post by jerald » Fri Nov 14, 2014 2:44 am

Code: Select all

String username = "mydb";
        String password = "mydb";
        
now also getting the same Error:

java.sql.SQLInvalidAuthorizationSpecException: [Vertica][VJDBC](3781) FATAL: Invalid username or password

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: [Vertica][VJDBC](3781) FATAL: Invalid username or passwo

Post by NorbertKrupa » Fri Nov 14, 2014 4:02 pm

Try connecting using vsql with the credentials you provided.
Checkout vertica.tips for more Vertica resources.

Post Reply

Return to “New to Vertica”