You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.class.mysql_caller("CREATE USER '#{merged_name}' IDENTIFIED WITH 'mysql_native_password' AS '#{password_hash}'",'system')
74
74
@property_hash[:ensure]=:present
75
75
@property_hash[:password_hash]=password_hash
@@ -79,7 +79,7 @@ def create
79
79
@property_hash[:password_hash]=password_hash
80
80
end
81
81
# rubocop:disable Metrics/LineLength
82
-
ifnewer_than('mysql'=>'5.7.6','percona'=>'5.7.6')
82
+
ifnewer_than('mysql'=>'5.7.6','percona'=>'5.7.6')
83
83
self.class.mysql_caller("ALTER USER IF EXISTS '#{merged_name}' WITH MAX_USER_CONNECTIONS #{max_user_connections} MAX_CONNECTIONS_PER_HOUR #{max_connections_per_hour} MAX_QUERIES_PER_HOUR #{max_queries_per_hour} MAX_UPDATES_PER_HOUR #{max_updates_per_hour}",'system')
84
84
else
85
85
self.class.mysql_caller("GRANT USAGE ON *.* TO '#{merged_name}' WITH MAX_USER_CONNECTIONS #{max_user_connections} MAX_CONNECTIONS_PER_HOUR #{max_connections_per_hour} MAX_QUERIES_PER_HOUR #{max_queries_per_hour} MAX_UPDATES_PER_HOUR #{max_updates_per_hour}",'system')
0 commit comments