| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/main/ |
Upload File : |
# # MDEV-4332 Increase username length from 16 characters # # test that when ALTER-ing tables to have short usernames, # the server switches to short usernames internally too. # --source include/not_embedded.inc --source include/switch_to_mysql_user.inc set global sql_mode=""; set local sql_mode=""; alter table mysql.user modify User char(16) binary not null default ''; alter table mysql.db modify User char(16) binary not null default ''; alter table mysql.tables_priv modify User char(16) binary not null default ''; alter table mysql.columns_priv modify User char(16) binary not null default ''; alter table mysql.procs_priv modify User char(16) binary not null default ''; alter table mysql.proc modify definer char(77) collate utf8_bin not null default ''; alter table mysql.event modify definer char(77) collate utf8_bin not null default ''; flush privileges; --enable_metadata --disable_view_protocol # Check after fix MDEV-31540 --disable_cursor_protocol select user(); --enable_cursor_protocol --enable_view_protocol --disable_metadata --error ER_WRONG_STRING_LENGTH create user a17aaaaaaaaaaaaa0@localhost; --error ER_WRONG_STRING_LENGTH grant usage on *.* to a17aaaaaaaaaaaaa0@lodalhost; --error ER_WRONG_STRING_LENGTH drop user a17aaaaaaaaaaaaa0@lodalhost; alter table mysql.user modify User char(128) binary not null default ''; alter table mysql.db modify User char(128) binary not null default ''; alter table mysql.tables_priv modify User char(128) binary not null default ''; alter table mysql.columns_priv modify User char(128) binary not null default ''; alter table mysql.procs_priv modify User char(128) binary not null default ''; alter table mysql.proc modify definer varchar(384) collate utf8_bin not null default ''; alter table mysql.event modify definer varchar(384) collate utf8_bin not null default ''; flush privileges; --enable_metadata --disable_view_protocol # Check after fix MDEV-31540 --disable_cursor_protocol select user(); --enable_cursor_protocol --enable_view_protocol --disable_metadata set global sql_mode=default; --source include/switch_to_mysql_global_priv.inc