1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/my.cnf/009innodb mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/my.cnf/009innodb |
2 |
--- e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/my.cnf/009innodb 2002-09-10 15:34:51.000000000 -0400 |
3 |
+++ mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/my.cnf/009innodb 2006-04-30 13:23:05.000000000 -0400 |
4 |
@@ -1 +1,19 @@ |
5 |
-skip-innodb |
6 |
+{ |
7 |
+ my $innodb = $mysqld{InnoDB} || 'disabled'; |
8 |
+ |
9 |
+ return "skip-innodb" unless $innodb eq 'enabled'; |
10 |
+ |
11 |
+ # innodb is enabled. We'll use the MySQL-AB-recommended innodb |
12 |
+ # defaults for small to medium sites, from the my-medium.cnf file |
13 |
+ # distributed with MySQL |
14 |
+ $OUT .= "innodb_data_home_dir = /var/lib/mysql/\n"; |
15 |
+ $OUT .= "innodb_data_file_path = ibdata1:10M:autoextend\n"; |
16 |
+ $OUT .= "innodb_log_group_home_dir = /var/lib/mysql/\n"; |
17 |
+ $OUT .= "innodb_log_arch_dir = /var/lib/mysql/\n"; |
18 |
+ $OUT .= "innodb_buffer_pool_size = 16M\n"; |
19 |
+ $OUT .= "innodb_additional_mem_pool_size = 2M\n"; |
20 |
+ $OUT .= "innodb_log_file_size = 5M\n"; |
21 |
+ $OUT .= "innodb_log_buffer_size = 8M\n"; |
22 |
+ $OUT .= "innodb_flush_log_at_trx_commit = 1\n"; |
23 |
+ $OUT .= "innodb_lock_wait_timeout = 50\n"; |
24 |
+} |