Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add escape argument to formula for mysql grants #1

Merged
merged 1 commit into from
Mar 24, 2016
Merged

Add escape argument to formula for mysql grants #1

merged 1 commit into from
Mar 24, 2016

Conversation

pmcnett
Copy link

@pmcnett pmcnett commented Mar 19, 2016

This is needed to make 'wildcard' grants. Note you'll still need to double
up on the % and wrap in backticks as per the following example:

mysql:
user:
ci_admin:
databases:
- database: "dashboard_ci_%%"
table: '*'
grants: ['all privileges']
escape: False

The above grants user ci_admin full access to databases that start with
'dashboard_ci_'.

This is needed to make 'wildcard' grants. Note you'll still need to double
up on the % and wrap in backticks as per the following example:

mysql:
  user:
    ci_admin:
      databases:
        - database: "`dashboard_ci_%%`"
          table: '*'
          grants: ['all privileges']
          escape: False

The above grants user `ci_admin` full access to databases that start with
'dashboard_ci_'.
@cdarwin cdarwin merged commit 7a89d02 into luciddg:master Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants