I was having an issue where a sql user was periodically losing some of its privileges and tracked it down to the following in /scripts/securemysql
I added my sql user (MYUSER) as follows and for a while it appeared that the user wasn't losing its privileges
However, now when I make changes to this script to add MYUSER it appears the changes have been made to the script, but when I check on it a couple of days later the script has been reverted back to the original so MYUSER loses its privileges. Does anyone know what script or process is causing my changes to the securemysql script to be reverted? Thanks.
Code:
print MYSQL qq{UPDATE mysql.user SET Lock_tables_priv='N',Create_tmp_table_priv='N' WHERE User!='root';\n};
Code:
print MYSQL qq{UPDATE mysql.user SET Lock_tables_priv='N',Create_tmp_table_priv='N' WHERE User!='root' and User!='MYUSER';\n};