prevent remote super user login
-CREATE USER IF NOT EXISTS '<%= p('cf_mysql.mysql.admin_username') %>'@'%' IDENTIFIED BY '<%= p('cf_mysql.mysql.admin_password') %>';
-GRANT ALL PRIVILEGES ON *.* TO '<%= p('cf_mysql.mysql.admin_username') %>'@'%' WITH GRANT OPTION;
+CREATE USER IF NOT EXISTS '<%= p('cf_mysql.mysql.admin_username') %>'@'localhost' IDENTIFIED BY '<%= p('cf_mysql.mysql.admin_password') %>';
+GRANT ALL PRIVILEGES ON *.* TO '<%= p('cf_mysql.mysql.admin_username') %>'@'localhost' WITH GRANT OPTION;
UPDATE mysql.user SET Password=PASSWORD('<%= p('cf_mysql.mysql.admin_password') %>') WHERE User='<%= p('cf_mysql.mysql.admin_username') %>';
DELETE FROM mysql.user WHERE User='';
<% if_p('cf_mysql.mysql.previous_admin_username') do |previous_username| %>
