From 5fca86757b537e86d40bb96cb1f3fa825f927568 Mon Sep 17 00:00:00 2001 From: "Juan A. Garcia Pardo" Date: Wed, 16 Aug 2023 14:58:16 +0200 Subject: [PATCH] Add tool to fix the permissions of mysql. --- tools/fix_access.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/fix_access.sh diff --git a/tools/fix_access.sh b/tools/fix_access.sh new file mode 100755 index 00000000..fb143c88 --- /dev/null +++ b/tools/fix_access.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +str="ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY ''; +FLUSH PRIVILEGES; +" +echo "$str" | sudo mysql