Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/grant.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# File managed by Puppet

<% if mysql_db != "*" then %>
CREATE DATABASE IF NOT EXISTS <%= mysql_db %> ;
CREATE DATABASE IF NOT EXISTS `<%= mysql_db %>` ;
<% end %>
GRANT <%= mysql_privileges %> ON <%= mysql_db %>.* TO '<%= mysql_user %>'@'<%= mysql_host %>' IDENTIFIED BY '<%= mysql_password %>';
GRANT <%= mysql_privileges %> ON `<%= mysql_db %>`.* TO '<%= mysql_user %>'@'<%= mysql_host %>' IDENTIFIED BY '<%= mysql_password %>';
FLUSH PRIVILEGES ;