bdraco / addon_securityadvisor

Old Security Advisor for cPanel 11.40 (upstream repo) -- Use CPANELINC/addon_securityadvisor
Other
16 stars 56 forks source link

Anonymous MySQL users command needs to accommodate ANSI_QUOTES #59

Open FGasper opened 10 years ago

FGasper commented 10 years ago
mysql -e 'drop user ""'

The above, according to the docs, will fail if ANSI_QUOTES is enabled. (cf. https://dev.mysql.com/doc/refman/5.6/en/string-literals.html)

It should work to change it to:

mysql -e "drop user ''"