[MDEV-17658] change the structure of mysql.user table Created: 2018-11-10 Updated: 2023-09-21 Resolved: 2018-12-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Fix Version/s: | 10.4.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
The suggestion: Create new table
The data might looks like
and a view:
the view will show the same data that old mysql.user table had. The script mysql_fix_system_tables.sql should create new table and move data over. |
| Comments |
| Comment by Ralf Gebhardt [ 2018-11-10 ] |
|
serg, can you give a rough effort for this one? As type JSON will be used, wouldn't it make sense to give |
| Comment by Sergei Golubchik [ 2018-11-11 ] |
|
No, the JSON column from this task will only be modified by the server, not by users. There's no need to provide an additional CHECK constraint in this case. |
| Comment by Daniël van Eeden [ 2019-01-08 ] |
|
It would be very helpful to be able to link an account to some external system (e.g. a Request ID or a Ticket ID). This would make some compliance processes much easier. Allowing users to add to this JSON (or part of the JSON) would allow this. Maybe something that abstracts this like ALTER USER myuser COMMENT 'request_id: 1234'. |