Commit 3dbbcfc
Increase max user name length to 80
Summary:
This mitigates upstream bug: http://bugs.mysql.com/3083
User name length limit of 16 was too short, so made it 80.
80 is effectively the limit without making additional changes
because of MyISAM's 1000 byte limit on key length and the
primary key of mysql.columns_priv. To compute the size of
the key for that table, the lengths of the char fields are
summed and then multipled by 3, resulting in a limit on the
max size of user name lengths being 81 characters.
Test Plan:
Added long user names to basic grant and replication tests.
Did full build and test run without perfschema, no failures.
Did full build and test run with perfschema, no new failures.
Jenkins both 'arc unit', and 'arc unit --everything', pass
Built a test rpm, ran it through rpm tests, passed.
Installed the test rpm on a test server, then downgraded it:
"use mysql; show create table user;", and got:
* Before upgrade: "...`User` char(16)..."
* After upgrade: "...`User` char(16)..."
* After restart: "...`User` char(16)..."
* After running mysql_upgrade: "...`User` char(80)..."
* After downgrade: "...`User` char(80)..."
* After restart: "...`User` char(80)..."
* After running mysql_upgrade: "...`User` char(16)..."
Reviewers: rudradevbasak, jtolmer, chip, santoshb
Reviewed By: santoshb1 parent 6a28d54 commit 3dbbcfc
File tree
49 files changed
+360
-349
lines changed- include
- mysql
- mysql-test
- r
- suite
- funcs_1/r
- perfschema/r
- rpl
- r
- t
- t
- scripts
- sql
- storage/perfschema
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+360
-349
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
1894 | | - | |
| 1894 | + | |
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
| |||
1905 | 1905 | | |
1906 | 1906 | | |
1907 | 1907 | | |
1908 | | - | |
| 1908 | + | |
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5270 | 5270 | | |
5271 | 5271 | | |
5272 | 5272 | | |
5273 | | - | |
| 5273 | + | |
5274 | 5274 | | |
5275 | 5275 | | |
5276 | 5276 | | |
5277 | | - | |
| 5277 | + | |
5278 | 5278 | | |
5279 | 5279 | | |
5280 | 5280 | | |
| |||
0 commit comments