Hat man mehrere MySQL User, ist es recht umständlich sie via SHOW GRANTS zu exportieren und wieder anzulegen. Viel eleganter geht das mit mk-show-grants aus der maatkit Suite.
Alle MySQL User
Alle MySQL User
mk-show-grants -u root -p PASSWORD > grants.sql
Ohne root und debian-sys-maint
mk-show-grants -u root -p PASSWORD --ignore root@127.0.0.1,root@localhost,debian-sys-maint@localhost
/**
* Description
* array array_select_key( array array, array keys )
* Returns any values from the array $array which have keys that are in the array $keys
* http://snippets.bigtoach.com/snip
Overwrite ID to get same form multiple times on one page
function hpsolan_forms_page($data=array()){for($i=0;$i<count($data);$i++){$output= drupal_get_form("hpsolan_message_form_".$i,$data[$i]);}return$output;}function