当前位置:嗨网首页>书籍在线阅读

11-使用静态编译以提高性能

  
选择背景色: 黄橙 洋红 淡粉 水蓝 草绿 白色 选择字体: 宋体 黑体 微软雅黑 楷体 选择字体大小: 恢复默认

使用静态编译将大大提高MySQL的性能,编译选项如下:

shell>./configure --with-client-ldflags=-all-static --with-mysqld-ldflags= -all-static

其中的选项含义如下:

--with-client-ldflags=-all-static以纯静态方式编译客户端;

--with-mysqld-ldflags=-all-static以纯静态方式编译服务端。