From 24388eb8f83e36607bbd9f77cb104a6661101973 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Oct 2003 23:15:13 +0200 Subject: mysql_real_connect picks the Unix login when the user "" is used. This makes the test non-repeatable when running as root. So I change to not use the "" user, but a random string which will always result in the @localhost user being selected by the server. mysql-test/t/rpl_temporary.test: mysql_real_connect picks the Unix login when the user "" is used. This makes the test non-repeatable when running as root. So I change to not use the "" user, but a random string which will always result in the @localhost user being selected by the server. --- mysql-test/t/rpl_temporary.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mysql-test') diff --git a/mysql-test/t/rpl_temporary.test b/mysql-test/t/rpl_temporary.test index 79dba60964d..f1373d7ef23 100644 --- a/mysql-test/t/rpl_temporary.test +++ b/mysql-test/t/rpl_temporary.test @@ -19,7 +19,10 @@ connection master; connect (con1,localhost,root,,); connect (con2,localhost,root,,); -connect (con3,localhost,,,); +# We want to connect as an unprivileged user. But if we use user="" then this +# will pick the Unix login, which will cause problems if you're running the test +# as root. +connect (con3,localhost,zedjzlcsjhd,,); # We are going to use SET PSEUDO_THREAD_ID in this test; # check that it requires the SUPER privilege. -- cgit v1.2.1