试图用fabric设置mysql用户权限。
run("mysql -u %s -p%s -e 'grant all on %s.* to '%s'@'localhost' identified by 'PASSWORD'" % (user, dbpasswd, account))
错误
TypeError: not enough arguments for format string
任何的想法 ?非常感谢 !
run('mysql -u %s -p%s -e "grant all on %s.* to '%s\'@\'localhost' identified by 'PASSWORD'"' % (user, dbpasswd, account, account))
SyntaxError: unexpected character after line continuation character