文档介绍:UflIXHOT Linux 系统运维Z MySQL DBA
UMIMHOT Linux 系统运维Z MySQL DBA
UN IXHOT打造中国最专业的运维门户网站 http://www. uni xhot. com 6
src]# cd mysql-
[******@MySQL-Master mysql-]# ./configure -prefix=/iisr/local/mysql \
~localstatedu=/data/mysql ・-enable-assembler \
-with-client-ldflags=-all-static —with-mysqld-ldflags=-all-static \
-witli-ptliread ・-enable-static -with-big-tables -without-ndb-debug \
~witli-charset=utfB —with-extra-charsets=all \
-witliout-debug ・-enable-thiead-safe-client -enable-local-uifile -with-pluguis=iiiax
[******@MySQL-Master mysql-]# make && make install
2. 2安装参数介绍
UflIXHOT Linux 系统运维Z MySQL DBA
UMIMHOT Linux 系统运维Z MySQL DBA
UN IXHOT打造中国最专业的运维门户网站 http://www. uni xhot. com 4
UN IXHOT打造中国最专业的运维门户网站 http://www. unixhot. com 7
UMIXH0T Linux 系统运维Z MySQL DBA
UN I XHOT打造中国最专业的运维门户网站 http://www. unixhot. com
-prefix=/usr/local/mysql 〃主程序安装冃录
eSIliE
-localstatedir=/data. mysql 〃库文件存放目录
-with-client-ldflags=-all-static -with-mysqld-ldflags=-all-static//静态编译安装 mysql 客户端和服务端 -with-ptluead 〃采用线程
-with-big-tables //对大表的支持
-with-charset=utfB 〃默认字符集为 utfS
-with-extra-cliarsets=all //安装所右字符集
-without-debug 〃去掉 debug 模式
—enable-thread-safe-client 〃以纟戈程方式编译客户端
-with-plugms=inax 〃添加对 innodb 及 partition 的支持
-enable-local-infile //对 load data 的支持
2. 3创建用户和组
[******@MySQL-Master mysql-]# groupadd mysql
[******@MySQL-Master mysql-]# useradd -s /sbiaiiologin -M ・g mysql mysql
2. 4安装数据库
[******@MySQL-Master mysql-]# cd /usr/local mysql/
[******@MySQL-Master mysql]# mkdir -p /unixliot/mysql
[******@MySQL-Master mysql]# bia/mysql_mstall_db ~basedu-/usr/locaL mysql/ --datadii^/dataoiiysql/ 一 user=mysql
2. 5相应权限的修改
[******@MySQL-Master mysql] # chown -R root:mysql /usr/local/mysql/
[******@MySQL-Master mysql]# chown -R mysql mysql /data/mysql/
UflIXHOT Linux 系统运维Z MySQL DBA
UMIMHOT Linux 系统运维Z MySQL DBA
UN IXHOT打造中国最专业的运维门户网站 http://www. uni xhot. com 6
UN IXHOT打造中国最专业的运维门户网站 http://www. unixhot. com 5
UM