diff --git a/roles/phpmyadmin/templates/config.inc.php b/roles/phpmyadmin/templates/config.inc.php index 323ff14e5..045f2fb6e 100644 --- a/roles/phpmyadmin/templates/config.inc.php +++ b/roles/phpmyadmin/templates/config.inc.php @@ -13,7 +13,7 @@ $i++; $cfg['Servers'][$i]['verbose'] = 'School Server Mysql Database'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; -$cfg['Servers'][$i]['socket'] = ''; +$cfg['Servers'][$i]['socket'] = '/var/run/mysqld/mysqld.sock'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; diff --git a/roles/phpmyadmin/templates/mkuser b/roles/phpmyadmin/templates/mkuser index b7f22aa68..ac71b542e 100644 --- a/roles/phpmyadmin/templates/mkuser +++ b/roles/phpmyadmin/templates/mkuser @@ -1,3 +1,3 @@ CREATE USER 'Admin'@'localhost' IDENTIFIED BY 'changeme'; -GRANT ALL PRIVILEGES ON *.* TO 'Admin'@'localhost' WITH GRANT OPTION; +GRANT SELECT ON *.* TO 'Admin'@'localhost'; FLUSH PRIVILEGES;