博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos7 mysql 5.7.24 源码编译
阅读量:4964 次
发布时间:2019-06-12

本文共 2103 字,大约阅读时间需要 7 分钟。

下载源码包 mysql-5.7.24    boost_1_59_0.tar.gz部署:# root @ k8s-mysql02 in ~ yum install -y cmake bison bison-devel libaio-devel gcc gcc-c++ git  ncurses-devel# root @ k8s-mysql02 in ~ cd /usr/local/src# root @ k8s-mysql02 in ~tar -xf mysql-5.7.24.tar.gz # root @ k8s-mysql02 in ~mkdir /usr/local/src/mysql-5.7.24/boost# root @ k8s-mysql02 in ~ tar -xf boost_1_59_0.tar.gz  -C  /usr/local/src/mysql-5.7.24/boost/# root @ k8s-mysql02 in ~groupadd mysql# root @ k8s-mysql02 in ~useradd -M -s /sbin/nologin -r -g mysql mysql# root @ k8s-mysql02 in ~ mkdir -p /data/mysql/data# root @ k8s-mysql02 in ~ cd /usr/local/src/mysql# root @ k8s-mysql02 in ~  cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql/data -DSYSCONFDIR=/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/data/mysql/data/mysql.sock -DMYSQL_TCP_PORT=3306 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/src/mysql-5.7.24/boost/boost_1_59_0# root @ k8s-mysql02 in ~  make && make install# root @ k8s-mysql02 in ~ chown  mysql:mysql  /usr/local/mysql/ -R# root @ k8s-mysql02 in ~ cp /usr/local/mysql/support-files/mysql.server  /etc/init.d/mysqld# root @ k8s-mysql02 in ~ chmod  +x /etc/init.d/mysqld# root @ k8s-mysql02 in ~  vim  /etc/init.d/mysqld修改 basedir    basedir=/usr/local/mysql修改 datadir    datadir=/data/mysql/data# root @ k8s-mysql02 in ~ vim  /etc/profile增加环境变量export PATH=/usr/local/mysql/bin:$PATH# root @ k8s-mysql02 in ~ source  /etc/profile# root @ k8s-mysql02 in ~ /usr/local/mysql/bin/mysqld    --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data/记住初始化密码# root @ k8s-mysql02 in ~ /etc/init.d/mysqld  start# root @ k8s-mysql02 in ~ mysql -u root -p   (需要修改密码)mysql> alter user 'root'@'localhost' identified by '1234';mysql> update user set authentication_string = password('1234')  where user = 'root';

  

转载于:https://www.cnblogs.com/lixinliang/p/11399468.html

你可能感兴趣的文章
spiral-matrix-ii &i 生成顺时针序列
查看>>
三大WEB服务器对比分析(apache ,lighttpd,nginx)
查看>>
关于STC单片机的内存管理
查看>>
1025: [SCOI2009]游戏 - BZOJ
查看>>
python set集合方法总结
查看>>
python考点
查看>>
dstat 监控时,无颜色显示
查看>>
CSS3阴影 box-shadow的使用和技巧总结
查看>>
DataMining--Python基础入门
查看>>
单片机复位电路
查看>>
php json_decode失败,返回null
查看>>
获取单选按钮选中的值
查看>>
oracle 分页
查看>>
助教学期总结
查看>>
绘制基本 图形之矩形与多边形
查看>>
3-day3-list-truple-map.py
查看>>
02: djangorestframework使用
查看>>
7zip 自解压安装程序
查看>>
Graph-tool简介 - wiki
查看>>
jenkins 离线安装插件 ,插件的下载地址
查看>>