0

重複の可能性:
Pythonファブリックのmysql権限

ファブリックでmysqlユーザー権限を設定しようとしています。

何か案が ?どうもありがとう !

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
4

1 に答える 1

2

行を次のように変更してみてください。

run('mysql -u %s -p%s -e "grant all on %s.* to \'%s\'@\'localhost\' identified by \'PASSWORD\'"' % (user, dbpasswd, account, account))
于 2012-07-09T13:26:21.210 に答える