[MDEV-4332] Increase username length from 16 characters Created: 2013-03-26 Updated: 2014-04-28 Resolved: 2013-04-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 5.5.31 |
| Type: | Task | Priority: | Major |
| Reporter: | Jani Tolonen | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
To increase username length from 16 characters to 64 or 128 characters. Included preliminary patch for mariadb 5.5. In 5.5 we will not change system tables though. Which means that the user would need to alter system tables manually to use that. A test case (in mysql-test) will have to use ALTER TABLE mysql.user too. In 10.0 we'll remove this limitation. |
| Comments |
| Comment by Sergei Golubchik [ 2013-04-19 ] | ||||||||||
|
username length is increased in the server to 128, although practically it cannot be larger that 80 now, otherwise columns_priv table hits a max index length limitation. pushed in 5.5 | ||||||||||
| Comment by Elena Stepanova [ 2013-05-11 ] | ||||||||||
|
Is it on purpose that I_S.PROCESSLIST still has `USER` varchar(16) NOT NULL DEFAULT ''? | ||||||||||
| Comment by Elena Stepanova [ 2013-05-12 ] | ||||||||||
|
proxies_priv table also needs to be altered. It's not a bug for 5.5 since ALTER is done manually anyway, just something not to forget in instructions. In 10.x, I suppose, it should be done along with other system tables. | ||||||||||
| Comment by Elena Stepanova [ 2013-05-12 ] | ||||||||||
|
... and mysql.servers (Username). | ||||||||||
| Comment by Elena Stepanova [ 2013-05-12 ] | ||||||||||
|
Actually, in proxies_priv there are 3 fields – also Grantor, which should be longer than 80, because it also includes the host, e.g. root@localhost | ||||||||||
| Comment by Elena Stepanova [ 2013-05-12 ] | ||||||||||
|
procs_priv and tables_priv also have Grantor column (currently char(77)), they should apparently be modified as well. | ||||||||||
| Comment by Igor Galić [ 2013-10-15 ] | ||||||||||
|
Here's a full listing:
| ||||||||||
| Comment by Elena Stepanova [ 2013-10-15 ] | ||||||||||
|
There are actually some more, it's listed here: https://mariadb.com/kb/en/create-user/#user-names (at the bottom of the page) |