<commit_before>-- ##########################################################################
-- #                                                                        #
-- #                IMPORTANT DEVELOPMENT NOTICE:                           #
-- #                                                                        #
-- #   All ocurrences of '$ UUID' must be replaced with the actual storage  #
-- #        UUID before uploading the recipe to the chef-server             #             
-- #                                                                        #
-- ##########################################################################
 

DROP DATABASE IF EXISTS <%= node['storage'] ['$UUID']['schema'] %>;

CREATE DATABASE <%= node['storage'] ['$UUID']['schema'] %>;

GRANT ALL 
	ON  <%= node['storage'] ['$UUID']['schema'] %>.* 
	TO '<%= node['storage'] ['$UUID']['dbuser']   %>' 
	IDENTIFIED BY '<%= node['storage'] ['$UUID']['dbpassword'] %>';

GRANT ALL 
	ON  <%= node['storage'] ['$UUID']['schema'] %>.* 
	TO '<%= node['storage'] ['$UUID']['dbuser']   %>'@'localhost' 
	IDENTIFIED BY '<%= node['storage'] ['$UUID']['dbpassword'] %>';

GRANT ALL 
	ON  <%= node['storage'] ['$UUID']['schema'] %>.* 
	TO '<%= node['storage'] ['$UUID']['dbuser']   %>'@'%' 
	IDENTIFIED BY '<%= node['storage']['$UUID']['dbpassword'] %>';<commit_msg>Storage factory recipe fixed; can locally log in on mysql<commit_after>-- ##########################################################################
-- #                                                                        #
-- #                IMPORTANT DEVELOPMENT NOTICE:                           #
-- #                                                                        #
-- #   All ocurrences of '$ UUID' must be replaced with the actual storage  #
-- #        UUID before uploading the recipe to the chef-server             #             
-- #                                                                        #
-- ##########################################################################
 

CREATE DATABASE IF NOT EXISTS <%= node['storage']['$UUID']['schema'] %>;

GRANT ALL 
	ON  <%= node['storage']['$UUID']['schema'] %>.* 
	TO '<%= node['storage']['$UUID']['dbuser']   %>'@'localhost' 
	IDENTIFIED BY '<%= node['storage']['$UUID']['dbpassword'] %>';

GRANT ALL 
	ON  <%= node['storage']['$UUID']['schema'] %>.* 
	TO '<%= node['storage']['$UUID']['dbuser']   %>'@'%' 
	IDENTIFIED BY '<%= node['storage']['$UUID']['dbpassword'] %>';
{'fraction_non_alphanumeric': 0.2976428286056732, 'fraction_numerical': 0.0, 'mean_word_length': 1.855188141391106, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3529171', 'n_tokens_mistral': 648, 'n_tokens_neox': 594, 'n_words': 126}