11-使用静态编译以提高性能
使用静态编译将大大提高MySQL的性能,编译选项如下:
shell>./configure --with-client-ldflags=-all-static --with-mysqld-ldflags= -all-static
其中的选项含义如下:
--with-client-ldflags=-all-static以纯静态方式编译客户端;
--with-mysqld-ldflags=-all-static以纯静态方式编译服务端。
使用静态编译将大大提高MySQL的性能,编译选项如下:
shell>./configure --with-client-ldflags=-all-static --with-mysqld-ldflags= -all-static
其中的选项含义如下:
--with-client-ldflags=-all-static以纯静态方式编译客户端;
--with-mysqld-ldflags=-all-static以纯静态方式编译服务端。