dolt icon indicating copy to clipboard operation
dolt copied to clipboard

granting all privileges leads to syntax error

Open tsonglew opened this issue 3 years ago • 1 comments

creating user and granting select to the user works fine, but granting all privileges to the user failed.

mysql> CREATE USER 'dolt'@'%' IDENTIFIED BY 'dolt';
mysql> GRANT SELECT ON *.* TO 'dolt'@'%';
mysql> GRANT ALL PRIVILEGES  ON *.* TO 'dolt'@'%';
Error 1105: syntax error at position 22 near 'PRIVILEGES'

tsonglew avatar Jul 28 '22 06:07 tsonglew

Hey @tsonglew, thanks for reporting this gap. We'll dig in and take a look at extending the syntax to support this.

fulghum avatar Jul 28 '22 15:07 fulghum

creating user and granting select to the user works fine, but granting all privileges to the user failed.

mysql> CREATE USER 'dolt'@'%' IDENTIFIED BY 'dolt';
mysql> GRANT SELECT ON *.* TO 'dolt'@'%';
mysql> GRANT ALL PRIVILEGES  ON *.* TO 'dolt'@'%';
Error 1105: syntax error at position 22 near 'PRIVILEGES'

If you leave off PRIVILEGES and just do:

GRANT ALL ON *.* TO 'dolt'@'%';

This will work.

timsehn avatar Aug 15 '22 18:08 timsehn

We should implement ALL PRIVILEGES in addition to ALL ASAP since it is in all the high ranked online examples.

timsehn avatar Aug 15 '22 18:08 timsehn

This is fixed in source. We'll close this when it's in a release.

zachmu avatar Aug 15 '22 19:08 zachmu

Gonna close so we don't forget to when we release.

timsehn avatar Aug 15 '22 21:08 timsehn