Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typo3_site
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Kevin Ditscheid
typo3_site
Commits
cbb5838b
Commit
cbb5838b
authored
9 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Fix a couple of MySQL installation issues
parent
dae2f00d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/default.rb
+18
-13
18 additions, 13 deletions
recipes/default.rb
templates/default/my-5.5.cnf.erb
+73
-0
73 additions, 0 deletions
templates/default/my-5.5.cnf.erb
templates/default/my-5.6.cnf.erb
+1
-1
1 addition, 1 deletion
templates/default/my-5.6.cnf.erb
with
92 additions
and
14 deletions
recipes/default.rb
+
18
−
13
View file @
cbb5838b
...
...
@@ -297,15 +297,13 @@ mysql_service 'default' do
action
[
:create
,
:start
]
end
# overwrite the configuration only for MySQL 5.6 (disables the strict checks)
if
node
[
'typo3_site'
][
'mysql_version'
]
===
'5.6'
mysql_config
'default'
do
source
"my-
#{
node
[
'typo3_site'
][
'mysql_version'
]
}
.cnf.erb"
action
:create
end
mysql_config
'default'
do
source
"my-
#{
node
[
'typo3_site'
][
'mysql_version'
]
}
.cnf.erb"
action
:create
end
mysql_client
'default'
do
version
node
[
'typo3_site'
][
'mysql_version'
]
action
:create
end
...
...
@@ -362,14 +360,21 @@ node['typo3_site']['sync_databases'].each do |database_data|
action
:run
end
# this would be better, but currently buggy in the database cookbook
# https://github.com/opscode-cookbooks/database/issues/128
mysql_database
'Import Dump for '
+
database_data
[
'database_name'
]
do
connection
connection_info
database_name
database_data
[
'database_name'
]
sql
{
::
File
.
open
(
database_data
[
'dump_local'
]).
read
}
action
:query
# load the dump
bash
'Import Dump for '
+
database_data
[
'database_name'
]
do
code
<<-
EOF
mysql -h 127.0.0.1 -u root -proot
#{
database_data
[
'database_name'
]
}
<
#{
database_data
[
'dump_local'
]
}
EOF
action
:run
end
# causes still strange issues that leads to crashes of the MySQL server
# mysql_database 'Import Dump for ' + database_data['database_name'] do
# connection connection_info
# database_name database_data['database_name']
# sql { ::File.open(database_data['dump_local']).read }
# action :query
# end
end
if
database_data
[
'post_install_queries'
]
...
...
This diff is collapsed.
Click to expand it.
templates/default/my-5.5.cnf.erb
0 → 100644
+
73
−
0
View file @
cbb5838b
# Chef generated my.cnf for instance mysql-default
[client]
default-character-set = utf8
port = 3306
socket = /run/mysql-default/mysqld.sock
[mysql]
default-character-set = utf8
[mysqld]
user = mysql
pid-file = /run/mysql-default/mysqld.pid
socket = /run/mysql-default/mysqld.sock
port = 3306
datadir = /var/lib/mysql-default
tmpdir = /tmp
log-error = /var/log/mysql-default/error.log
!includedir /etc/mysql-default/conf.d
[mysqld_safe]
socket = /run/mysql-default/mysqld.sock
[mysqld]
key_buffer_size = 32M
max_allowed_packet = 16M
max_connections = 214
thread_cache_size = 200
query_cache_limit = 4M
query_cache_size = 128M
query_cache_type = 1
tmp_table_size = 128M
max_heap_table_size = 128M
table_definition_cache = 800
join_buffer_size = 4M
table_open_cache = 200
open_files_limit = 512
#myisam-recover = BACKUP
myisam_sort_buffer_size = 32M
myisam_recover_options = BACKUP
innodb_buffer_pool_size = 512M
innodb_flush_method = O_DIRECT
innodb_thread_concurrency = 0
innodb_read_io_threads = 64
innodb_write_io_threads = 64
log_warnings = 2
slave_net_timeout = 60
collation_server = utf8_unicode_ci
character_set_server = utf8
long_query_time = 3
slow_query_log = 1
slow_query_log_file = /var/log/mysql-default/log-slow-queries.log
[mysqldump]
quick
quote-names
max_allowed_packet = 128M
[isamchk]
key_buffer = 32M
[mysql]
default-character-set=utf8
This diff is collapsed.
Click to expand it.
templates/default/my-5.6.cnf.erb
+
1
−
1
View file @
cbb5838b
...
...
@@ -44,7 +44,7 @@ slow_query_log_file = /var/log/mysql-default/log-slow-queries.log
[mysqldump]
quick
quote-names
max_allowed_packet =
64
M
max_allowed_packet =
128
M
[isamchk]
key_buffer = 32M
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment