summaryrefslogtreecommitdiff
path: root/mysql-test/include/have_auth_named_pipe.inc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-12-05 13:13:07 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2019-01-08 17:18:47 +0100
commit83c81d8991fd72fb8af54172c612310e885720f5 (patch)
tree02e23729f7731213d80932f6d9e22c1452a3c110 /mysql-test/include/have_auth_named_pipe.inc
parent30da40bb8c303159747b1cf1d74411b049b6d252 (diff)
downloadmariadb-git-83c81d8991fd72fb8af54172c612310e885720f5.tar.gz
MDEV-7598 Lock user after too many password errors
Diffstat (limited to 'mysql-test/include/have_auth_named_pipe.inc')
-rw-r--r--mysql-test/include/have_auth_named_pipe.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/include/have_auth_named_pipe.inc b/mysql-test/include/have_auth_named_pipe.inc
new file mode 100644
index 00000000000..4f4bf37f11e
--- /dev/null
+++ b/mysql-test/include/have_auth_named_pipe.inc
@@ -0,0 +1,13 @@
+--source include/not_embedded.inc
+
+if (!$AUTH_NAMED_PIPE_SO) {
+ skip No auth_named_pipe plugin;
+}
+
+if (!$USERNAME) {
+ skip USER variable is undefined;
+}
+
+if (`SELECT count(*) <> 0 FROM mysql.user WHERE user = '$USERNAME'`) {
+ skip %USERNAME%=$USER which exists in mysql.user;
+}