mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Bug # 11766011: mysql.user.authentication_string column causes
configuration wizard to fail Made the fields mysql.user.plugin and mysql.user.authentication_string nullable to conform with some older clients doing inserts instead of using the commands.
This commit is contained in:
@ -342,4 +342,62 @@ select USER(),CURRENT_USER();
|
||||
USER() CURRENT_USER()
|
||||
uplain@localhost uplain@localhost
|
||||
DROP USER uplain@localhost;
|
||||
#
|
||||
# Bug #59038 : mysql.user.authentication_string column
|
||||
# causes configuration wizard to fail
|
||||
INSERT INTO mysql.user(
|
||||
Host,
|
||||
User,
|
||||
Password,
|
||||
Select_priv,
|
||||
Insert_priv,
|
||||
Update_priv,
|
||||
Delete_priv,
|
||||
Create_priv,
|
||||
Drop_priv,
|
||||
Reload_priv,
|
||||
Shutdown_priv,
|
||||
Process_priv,
|
||||
File_priv,
|
||||
Grant_priv,
|
||||
References_priv,
|
||||
Index_priv,
|
||||
Alter_priv,
|
||||
Show_db_priv,
|
||||
Super_priv,
|
||||
Create_tmp_table_priv,
|
||||
Lock_tables_priv,
|
||||
Execute_priv,
|
||||
Repl_slave_priv,
|
||||
Repl_client_priv,
|
||||
/*!50001
|
||||
Create_view_priv,
|
||||
Show_view_priv,
|
||||
Create_routine_priv,
|
||||
Alter_routine_priv,
|
||||
Create_user_priv,
|
||||
*/
|
||||
ssl_type,
|
||||
ssl_cipher,
|
||||
x509_issuer,
|
||||
x509_subject,
|
||||
max_questions,
|
||||
max_updates,
|
||||
max_connections)
|
||||
VALUES (
|
||||
'localhost',
|
||||
'inserttest', '',
|
||||
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
|
||||
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
|
||||
/*!50001 'Y', 'Y', 'Y', 'Y', 'Y', */'', '', '', '', '0', '0', '0');
|
||||
FLUSH PRIVILEGES;
|
||||
DROP USER inserttest@localhost;
|
||||
SELECT IS_NULLABLE, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE
|
||||
COLUMN_NAME IN ('authentication_string', 'plugin') AND
|
||||
TABLE_NAME='user' AND
|
||||
TABLE_SCHEMA='mysql'
|
||||
ORDER BY COLUMN_NAME;
|
||||
IS_NULLABLE COLUMN_NAME
|
||||
YES authentication_string
|
||||
YES plugin
|
||||
End of 5.5 tests
|
||||
|
Reference in New Issue
Block a user