[packages/mysql] Direct cmd for finding a password. Don't mv config to /etc/

arekm arekm at pld-linux.org
Thu Mar 28 10:40:55 CET 2024


commit aca1051c0e47f0f976ef4db2caa4ddc05f774b92
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Mar 28 09:30:32 2024 +0100

    Direct cmd for finding a password. Don't mv config to /etc/

 mysql.init | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/mysql.init b/mysql.init
index c0a7a26..16e5d17 100755
--- a/mysql.init
+++ b/mysql.init
@@ -507,9 +507,8 @@ Both into command:
 $ mysql{MYSQL_MAJOR} -u root -p --ssl-mode=disabled -S $MYSQL_SOCKET
 
 NOTE 1:
-CURRENT TEMPORARY ROOT PASSWORD CAN BE FOUND IN LOG
-(grep for "A temporary password is generated" string):
-$MYSQL_ERRLOG
+CURRENT TEMPORARY ROOT PASSWORD CAN BE FOUND IN LOG:
+grep "A temporary password is generated" $MYSQL_ERRLOG
 
 
 NOTE 2:
@@ -558,10 +557,6 @@ END_OF_MSG
 		sock=${MYSQL_SOCKET#/var/lib/mysql{MYSQL_MAJOR}/} # make it relative if possible
 		ln -s "$sock" /var/lib/mysql{MYSQL_MAJOR}/mysql.sock
 	fi
-	# same for config, move to /etc
-	if [ ! -e /etc/mysql{MYSQL_MAJOR}/mysqld.conf ]; then
-		mv "$MYSQL_CLUSTER_DIR/mysqld.conf" /etc/mysql{MYSQL_MAJOR}/mysqld.conf
-	fi
 }
 
 #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/aca1051c0e47f0f976ef4db2caa4ddc05f774b92



More information about the pld-cvs-commit mailing list