cancel
Showing results for 
Search instead for 
Did you mean: 

sql Permissions changed

Former Member
0 Kudos
1,899

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

MarkCulp
Participant

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?