Login failure exceptions with user authentication If user authentication is turned on and a valid user name and password are not provided, SQLException 08004 is raised. ERROR 08004: Connection refused : Invalid authentication.