Option for one file per innodb table

This commit is contained in:
Jamie Cameron
2010-03-03 21:46:06 -08:00
parent 9c6f5e08a7
commit a4a51a46c7
3 changed files with 11 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ print &ui_table_row($text{'cnf_stor'},
'NDB', 'ARCHIVE', 'CSV',
'BLACKHOLE' ], 1, 0, 1));
$fpt = &find_value("innodb_file_per_table", $mems);
print &ui_table_row($text{'cnf_fpt'},
&ui_yesno_radio("fpt", $fpt));
# Show set variables
print &ui_table_hr();

View File

@@ -747,6 +747,7 @@ cnf_enet_buffer_length=Missing or invalid network buffer size
cnf_emyisam_sort_buffer_size=Missing or invalid MyISAM sort buffer size
cnf_emax_connections=Missing or invalid maximum number of connections
cnf_restart=Save and Restart MySQL
cnf_fpt=Separate file for each InnoDB table?
index_title1=Create Index
index_header1=Index options

View File

@@ -51,6 +51,12 @@ else {
&save_directive($conf, $mysqld, "default-storage-engine",
$in{'stor'} ? [ $in{'stor'} ] : [ ]);
$fpt = &find_value("innodb_file_per_table", $mems);
if ($fpt || $in{'fpt'}) {
&save_directive($conf, $mysqld, "innodb_file_per_table",
[ $in{'fpt'} ]);
}
&save_directive($conf, $mysqld, "skip-locking",
$in{'skip-locking'} ? [ "" ] : [ ]);