这种高端问题通常很少人遇到过,我也没有弄过。 但是从帮助上看有控值裸设备的选项。Starting from 3.23.41 you can also use a raw disk partition as a datafile, though this has not been tested yet. When you create a new datafile you have to put the keyword newraw immediately after the data file-size in innodb_data_file_path. The partition must be >= than you specify as the size. Note that 1M in InnoDB is 1024 x 1024 bytes, while in disk specifications 1 MB usually means 1000 000 bytes. innodb_data_file_path=hdd1:5Gnewraw;hdd2:2GnewrawWhen you start the database again you must change the keyword to raw. Otherwise, InnoDB will write over your partition! innodb_data_file_path=hdd1:5Graw;hdd2:2GrawBy using a raw disk you can on some Unixes perform unbuffered I/O.
但是从帮助上看有控值裸设备的选项。Starting from 3.23.41 you can also use a raw disk partition as a datafile, though this has not been tested yet. When you create a new datafile you have to put the keyword newraw immediately after the data file-size in innodb_data_file_path. The partition must be >= than you specify as the size. Note that 1M in InnoDB is 1024 x 1024 bytes, while in disk specifications 1 MB usually means 1000 000 bytes. innodb_data_file_path=hdd1:5Gnewraw;hdd2:2GnewrawWhen you start the database again you must change the keyword to raw. Otherwise, InnoDB will write over your partition! innodb_data_file_path=hdd1:5Graw;hdd2:2GrawBy using a raw disk you can on some Unixes perform unbuffered I/O.