Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

I need some help. I recently ran this grant command created database roundcube ran

grant ALL on roundcube to user1@"localhost" identified by "" with grant option;

Now any previous webpages that used user1 can not authenticate

Database error. could not connect to the database server (localhost,user1)

Any help is greatly appreciated.... Help. what exactly changed?

asked 31 Mar '14, 10:34

webdiver's gravatar image

accept rate: 0%

edited 31 Mar '14, 10:41

Mark%20Culp's gravatar image

Mark Culp

When you specified identified by "" you changed the password for the user to be an empty string.

To fix your problem, do one of:

  • log into the database as DBA and change the users password back to what the client had been using. I.e. issue the statement (depending on version that you are using):

    CREATE USER user1 IDENTIFIED BY "oldpassword";


ALTER USER user1 IDENTIFIED BY "oldpassword";
  • change the client connection string to specify an empty string. E.g. PWD=

  • do both of the above: give the user a new password by issuing the create or alter statement and change the connection string that the client is using to use the new password.


if the above does not help, then please provide more info:

  • what version and build number are you using?
  • what client are you using to generate the web pages, and what database API are you using?
permanent link

answered 31 Mar '14, 10:47

Mark%20Culp's gravatar image

Mark Culp
accept rate: 41%

edited 31 Mar '14, 10:51

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 31 Mar '14, 10:34

question was seen: 1,735 times

last updated: 31 Mar '14, 10:51