phpmyadmin/phpmyadmin

Support for MySQL/MariaDB roles

Ouverte

#16 884 ouverte le 6 mai 2021

 (4 commentaires) (1 réaction) (0 personne assignée)PHP (3 454 forks)batch import
Enhancementhelp wanted

Métriques du dépôt

Stars
 (6 886 étoiles)
Métriques de merge PR
 (Merge moyen 2j 17h) (11 PRs mergées en 30 j)

Description

Is your feature request related to a problem? Please describe.

MySQL and MariaDB support roles, but phpMyAdmin does not. It just handles them like normal user accounts and displays them in the same list, without host and password.

Changing rights for this role-"user" is also not possible, because of a slightly different SQL syntax for roles. You have to use only 'name_of_role' instead of 'user'@'host' in your GRANT statement, phpMyAdmin is using the latter right now which results in 'name_of_role'@'', which is a non-existing user.

Describe the solution you'd like

PhpMyAdmin should fully supporting MySQL/MariaDB roles, which includes (at least):

  • managing of roles, separated from user accounts
  • managing rights for roles the same way as for normal accounts (almost no difference here, see above)
  • adding roles to users
  • setting the default role for users.

The role admin option might be similar to the grant option, and should be supported too, but I guess this is less important.

Describe alternatives you've considered

The only alternative right now is using plain SQL statements for managing roles, rights for roles, and roles for users.

Additional context

  • phpMyAdmin version: 5.1.0

Documentation for roles in MySQL and MariaDB:

Guide contributeur