Mysql源码包安装文档(单实例) 系统环境:(源码包)::--[******@Mysql-Master~]#mkdir/soft#创建用于存放软件包的目录,依个人习惯[******@Mysql-Master~]#cd/soft/[******@Mysql-Mastersoft]#[******@Mysql-Mastersoft]#wget--[******@Mysql-Mastersoft]#lsmysql-[******@Mysql-Mastersoft]#tarzxvfmysql--C/usr/src/#解压源码包[******@Mysql-Mastersoft]#groupaddmysql#创建mysql用户组[******@Mysql-Mastersoft]#useradd-s/sbin/nologin-gmysql-Mmysql #创建mysql用户并加入到mysql用户组,且不允许登录到shell[******@Mysql-Mastersoft]#tail-l/etc/passwd #查看创建的mysl用户(确认一下)…省略部分…mysql:x:500:500::/home/mysql:/sbin/nologin[******@Mysql-Mastersoft]#cd/usr/src/mysql-/[******@Mysql-Mastermysql-]#ls[******@Mysql-Mastermysql-]#./configure\ #编译配置文件选项参数>--prefix=/usr/local/mysql\ #指定mysql安装路径>--with-unix-socket-path=/usr/local/mysql/tmp/\ #%性能>--localstatedir=/usr/local/mysql/data\ #数据库存放目录>--enable-assembler\ #允许使用汇编模式(优化性能)>--enable-thread-safe-client\ #以线程方式编译客户端>--with-mysqld-user=mysql\ #运行mysql用户>--with-big-tables\ #大表支持>--without-debug\ #去掉debug模式如果用--with-debug=full编译,大多数查询慢20%>--with-pthread\ #强制使用pthread库(posix线程库)>--with-extra-plex\ #字符集支持>--with-readline\ #支持行编辑库>--with-ssl\ #开启ssl支持>--with-embedded-server\ #建立嵌入式服务器>--enable-local-infile\ #让mysql支持从本地文件 导入数据库 >--with-plugins=pa
mysql源码安装 来自淘豆网m.daumloan.com转载请标明出处.