Server IP : 184.154.167.98 / Your IP : 18.119.135.231 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /scripts/ |
Upload File : |
#!/bin/bash BINARY=$(which mysql) [[ -h $BINARY ]] && BINARY=$(which mariadb) echo -n "Cleaning up mysql privs. Please ignore errors about non-existent columns as you may have an older version of mysql....." $BINARY -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 ADMIN=$(which mysqladmin) [[ -h $ADMIN ]] && ADMIN=$(which mariadb-admin) $ADMIN reload echo "Done."