[PATCH lkp-tests 5/6] tests: fix bugs

del delete line: skip-grant-tables it will lead to access denied error. Signed-off-by: Luan Shengde <shdluan@163.com> --- tests/mysql-8-0-20 | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/mysql-8-0-20 b/tests/mysql-8-0-20 index ebc7c0e90..0c60ed9dd 100755 --- a/tests/mysql-8-0-20 +++ b/tests/mysql-8-0-20 @@ -40,7 +40,6 @@ configure_mysql() sleep 10 "$mysql" -u "$mysql_user" -e "flush privileges; use mysql; alter user 'root'@'localhost' identified by '$mysql_password'; flush privileges;" - sed -i '/^skip-grant-tables/d' /etc/my.cnf "$mysql_server" restart sleep 10 } -- 2.23.0

On Fri, Apr 23, 2021 at 09:46:29AM +0800, Luan Shengde wrote:
del delete line: skip-grant-tables
it will lead to access denied error.
Signed-off-by: Luan Shengde <shdluan@163.com> --- tests/mysql-8-0-20 | 1 - 1 file changed, 1 deletion(-)
diff --git a/tests/mysql-8-0-20 b/tests/mysql-8-0-20 index ebc7c0e90..0c60ed9dd 100755 --- a/tests/mysql-8-0-20 +++ b/tests/mysql-8-0-20 @@ -40,7 +40,6 @@ configure_mysql() sleep 10
"$mysql" -u "$mysql_user" -e "flush privileges; use mysql; alter user 'root'@'localhost' identified by '$mysql_password'; flush privileges;" - sed -i '/^skip-grant-tables/d' /etc/my.cnf
directly detele the line in my.cnf Thanks, Jiaxin
"$mysql_server" restart sleep 10 } -- 2.23.0

tests/mysql-8-0-20 | 1 - 1 file changed, 1 deletion(-)
diff --git a/tests/mysql-8-0-20 b/tests/mysql-8-0-20 index ebc7c0e90..0c60ed9dd 100755 --- a/tests/mysql-8-0-20 +++ b/tests/mysql-8-0-20 @@ -40,7 +40,6 @@ configure_mysql() sleep 10
"$mysql" -u "$mysql_user" -e "flush privileges; use mysql; alter user 'root'@'localhost' identified by '$mysql_password'; flush privileges;" - sed -i '/^skip-grant-tables/d' /etc/my.cnf
directly detele the line in my.cnf
I want to keep the line. Thanks, Luan Shengde
Thanks, Jiaxin
"$mysql_server" restart sleep 10 } -- 2.23.0
participants (2)
-
Lin Jiaxin
-
Luan Shengde