Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 5e9a5d6

Browse files
committed
Use an incorrect, but password like, hash for the password for the mysql.sys user, rather than a generated one using PASSWORD().
1 parent 5958a90 commit 5e9a5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate_sql_file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ then
167167

168168
# Add the expected user
169169
# Note this currently only works with 5.7 mysql.user structure
170-
echo "REPLACE INTO mysql.user VALUES ('localhost','mysql.sys','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','','','','',0,0,0,0,'mysql_native_password',PASSWORD(UUID()),'N',CURRENT_TIMESTAMP,NULL,'Y');" >> $OUTPUTFILE
170+
echo "REPLACE INTO mysql.user VALUES ('localhost','mysql.sys','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','','','','',0,0,0,0,'mysql_native_password','*THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE','N',CURRENT_TIMESTAMP,NULL,'Y');" >> $OUTPUTFILE
171171
echo "" >> $OUTPUTFILE
172172
echo "REPLACE INTO mysql.tables_priv VALUES ('localhost','sys','mysql.sys','sys_config','root@localhost', CURRENT_TIMESTAMP, 'Select', '');" >> $OUTPUTFILE
173173
echo "" >> $OUTPUTFILE

0 commit comments

Comments
 (0)