mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
try harder to link unix_socket plugin statically
fix unix_socket tests to work if unix_socket is a built-in
This commit is contained in:
@ -11,20 +11,6 @@ flush privileges;
|
||||
# that matches other parts of the error message.
|
||||
let $replace=Access denied for user '$USER';
|
||||
|
||||
--echo connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--disable_query_log
|
||||
--error ER_PLUGIN_IS_NOT_LOADED
|
||||
connect (fail,localhost,$USER);
|
||||
--enable_query_log
|
||||
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--error ER_PLUGIN_IS_NOT_LOADED
|
||||
change_user $USER;
|
||||
|
||||
eval install plugin unix_socket soname '$AUTH_SOCKET_SO';
|
||||
flush privileges;
|
||||
|
||||
--echo connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--disable_query_log
|
||||
@ -32,11 +18,9 @@ flush privileges;
|
||||
connect (fail,localhost,$USER);
|
||||
--enable_query_log
|
||||
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR
|
||||
change_user $USER;
|
||||
|
||||
update mysql.global_priv set priv=json_compact(json_remove(priv, '$.plugin'));
|
||||
flush privileges;
|
||||
uninstall plugin unix_socket;
|
||||
|
||||
|
Reference in New Issue
Block a user