Trying to set mysql user privileges with fabric.
run(\"mysql -u %s -p%s -e \'grant all on %s.* to \'%s\'@\'localhost\' identified by \'PASSWORD\'\" % (user, dbpa
Change your tuple to (user, dbpasswd, account, user) and you should be good. This error happens because you have 4 replacements tokens (%s) but only have 3 items in your tuple.
(user, dbpasswd, account, user)