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

webdiver
1111
accept rate: 0%

edited 31 Mar '14, 10:41

Mark%20Culp's gravatar image

Mark Culp
23.3k9132274


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";

or

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.

HTH

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
23.3k9132274
accept rate: 40%

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×131
×5

question asked: 31 Mar '14, 10:34

question was seen: 523 times

last updated: 31 Mar '14, 10:51