Skip to content
Snippets Groups Projects
Commit 9ece49d3 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[FEATURE] Switch to MySQL 5.6 and reload the configuration before using MySQL

parent e2354d63
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,7 @@ end ...@@ -250,6 +250,7 @@ end
################### ###################
mysql_service 'default' do mysql_service 'default' do
version '5.6'
initial_root_password 'root' initial_root_password 'root'
action [:create, :start] action [:create, :start]
end end
...@@ -257,13 +258,17 @@ end ...@@ -257,13 +258,17 @@ end
mysql_config 'default' do mysql_config 'default' do
source 'my.cnf.erb' source 'my.cnf.erb'
action :create action :create
notifies :restart, 'mysql_service[default]'
end end
mysql_client 'default' do mysql_client 'default' do
action :create action :create
end end
# important, because the set configuration isn't used otherwise in the next steps
mysql_service 'default' do
action :restart
end
######################## ########################
### Create Databases ### ### Create Databases ###
######################## ########################
......
...@@ -39,7 +39,7 @@ character_set_server = utf8 ...@@ -39,7 +39,7 @@ character_set_server = utf8
long_query_time = 3 long_query_time = 3
slow_query_log = 1 slow_query_log = 1
slow_query_log_file = /var/log/mysql/log-slow-queries.log slow_query_log_file = /var/log/mysql-default/log-slow-queries.log
[mysqldump] [mysqldump]
quick quick
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment