Granting SUPER privilege on databases with DrupalVM

Submitted by kentr on 03/03/2018, 09:37


I needed to grant the SUPER privilege to my Vagrant database user, and adding an item to mysql_users with append_privs per Ansible's mysql_user module documentation wasn't working for me.  


In your favorite local DrupalVM config file, redeclare the standard mysql_users, but add an additional privilege declaration in the priv property for *.*:SUPER.

  - name: "{{ drupal_db_user }}"
    host: "%"
    password: "{{ drupal_db_password }}"
    priv: "*.*:SUPER/{{ drupal_db_name }}.*:ALL"


Add new comment