mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 03:10:30 +01:00
Option for one file per innodb table
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'} ? [ "" ] : [ ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user