Link to home
Start Free TrialLog in
Avatar of Jasmin shahrzad
Jasmin shahrzad

asked on

why grant select on my sql not working?

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on JIRADB.* TO 'test'@'jiratest>' IDENTIFIED BY 'test';

return

Query OK, 0 rows affected (0,00 sec)
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Why do you say isn't working?
What's the error?

Anyway, you can't provide CREATE, DROP and INDEx. Those permissions are already part of the ALTER permission.
Try the following:
USE JIRADB
GO
GRANT SELECT,INSERT,UPDATE,DELETE,ALTER TO test
GO

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is MySQL not MS-SQL.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Vitor: INDEX is a distinct privilege from ALTER
I just realized that this question is MySQL related and not SQL Server. We don't have INDEX privileges in SQL Server.
Jasmin, a feedback will be appreciated.
Cheers
The answer was given
Recommend closing with my comment 42194464.
Since comment 42194464 repeated 42194264, it probably should be split.