-
mysql的编译安装运维中心 / operations 2dot5 写在2018年10月10日
mysql的编译安装
下载目录:
http://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.1/mysql-5.1.59.tar.gz1、安装依赖库
yum install gcc
yum install ncurses-develyum install gcc-c++2、到安装目录下编译语句
./configure –prefix=/data/mysql –localstatedir=/data/mysqldata/ –with-comment=Source –with-server-suffix=-Community –with-mysqld-user=mysql –without-debug –with-big-tables –with-charset=utf8 –with-collation=utf8_general_ci –with-extra-charsets=all –with-pthread –enable-static –enable-thread-safe-client –with-client-ldflags=-all-static –with-mysqld-ldflags=-all-static –enable-assembler –without-innodb –without-ndb-debug –with-federated-storage-enginemakemake installcp support-files/my-medium.cnf /data/mysql/my.cnfuseradd mysqlchown -R mysql:mysql /data/mysqlchown -R mysql:mysql /data/mysqldata./mysql_install_db –user=mysql –basedir=/data/mysql/ –datadir=/data/mysqldata/vi my.cnfdatadir = /data/mysqldataln -s /data/mysql/share/mysql/mysql.server /etc/init.d/mysqlchmod 755 /etc/init.d/mysql && chkconfig –add mysql && chkconfig –level 3 mysql onvi /etc/rc.localservice mysql startln -sf my.cnf /etc/my.cnf3、修改环境变量vi .bash_profileMYSQL=/data/mysqlPATH=$PATH:$HOME/bin:$MYSQL/binexport MYSQLexport PATHsource .bash_profileSELECT @@MAX_CONNECTIONS AS ‘Max Connections’;select @@autocommit;重启reboot;exitgrant all privileges on *.* to ‘root’@’%’ ;SET PASSWORD FOR ‘root’@’%’ = PASSWORD(‘home123!@#’);SET PASSWORD FOR ‘root’@’%’ = PASSWORD(‘tlxd-client(2015)$!@#’);SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘home123!@#’);FLUSH PRIVILEGES;下一篇: Liunx 防火墙 iptables
-
服务安装和配置
lvs 安装和配置方法: 参考网站:http:/...
-
Mysql 5.7.20 glibc 安装
1、下载mysql glibc 包wget https://dow...
-
nginx
pcre zlib openssl 怎么捣鼓也没搞定,...
-
虚拟服务器安装日志
df -h 格式化硬盘 fdisk /dev/vdb 1 p w...
-
nginx 日志配置
nginx 日志相关指令主要有两条, log_fo...
-
Liunx 防火墙 iptables
iptables 的命令参数 -t<表>:指...
相关推荐
您好!请登录
已有0评论