nosilence 发表于 2018-10-8 09:09:05

MySQL 5.5单实例 编译安装

./configure \  
--prefix=/usr/local/mysql \#安装路径
  
--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \#指定socket文件存放
  
--localstatedir=/usr/local/mysql/data \#MySQL数据文件存放位置
  
--enable-assembler \   #允许使用汇编模式
  
--enable-thread-safe-client \
  
--with-mysqld-user=mysql \    #指定MySQL运行的系统用户
  
--with-big-tables\
  
--without-debug \       #使用非debug
  
--with-pthread \   #强制使用pthread线程序库编译
  
--enable-assembler \
  
--with-extra-charsets=complex \
  
--with-readline \
  
--with-ssl \
  
--with-embedded-server \
  
--enable-local-infile \
  
--with-plugins=innobase,partition \
  
--enable-thread-safe-client \    #使用线程的方式编译客户端
  
--with-client-ldflags=-all-static\    #服务端使用静态库
  
--with-mysqld-ldflags=-all-static      #客户端使用静态库
  
#等待完成之后make && make install


页: [1]
查看完整版本: MySQL 5.5单实例 编译安装