好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

MySQL数据库插入速度调整


1.优化数据库主机IO;
2.调整MySQL对应参数。
开始处理:
1.主机IO优化
a.将数据库设置为独立表空间,并且将每个表空间放在不同的硬盘上;
b.关闭主机其他影响IO的进程。
2. 调整my.cnf参数,提升MySQL写速度

innodb_autoextend_increment =128M

innodb_log_buffer_size =32M

innodb_log_file_size=128M

以上3个参数是逐步变更到对应大小的

innodb_flush_log_at_trx_commit = 0



MySQL数据库插入速度调整

标签:mysql数据库插入速度调整

查看更多关于MySQL数据库插入速度调整的详细内容...

  阅读:35次