MySQL源码安装
来源:互联网 发布:c语言入门那本书好 编辑:程序博客网 时间:2024/06/14 01:47
1、准备工作
2、安装
2.1 上传源码包
将MySQL源码包上传到CentOS操作系统的/usr/developer目录,并解压改名,如下图所示
2.2 源码安装
进入/usr/developer/mysql-5.6.37/scripts目录执行以下命令,语法: ./mysql_install_db –user=mysql –basedir=basePath –datadir=basePath/data
[root@exercise243 scripts]# ./mysql_install_db --user=mysql --basedir=/usr/developer/mysql-5.6.37 --datadir=/usr/developer/mysql-5.6.37/data
2.3 赋值mysql.server
cp /usr/developer/mysql-5.6.37/support-files/mysql.server /etc/init.d/mysql
2.4 配置mysql数据路径
编辑 vim /etc/init.d/mysql 文件
basedir=/usr/developer/mysql-5.6.37datadir=/usr/developer/mysql-5.6.37/data
3、系统配置
3.1 MySQL环境变量
执行 vim /etc/profile,添加环境变量
export MYSQL_HOME=/usr/developer/mysql-5.6.37export PATH=$PATH:$MYSQL_HOME/bin
添加完以后执行 source /etc/profile 刷新环境变量列表
3.2 开机自动启动
[root@exercise243]# chkconfig --add mysql[root@exercise243]# chkconfig mysql on
Hero鹏,一个伟大的名字
如有疑问或是吐槽者,都可以联系我,
HomePage: www.crazyboy2016.com
Email: wangjianpeng228@163.com
GitHub: wangjianpeng2016
Blog: Hero鹏
阅读全文
0 0
- ubuntu源码安装mysql
- MYSQL 源码安装手记
- 从源码安装MySQL
- MYSQL源码安装概述
- ubuntu 源码安装Mysql
- MySQL源码安装步骤
- MySQL源码安装
- 源码安装mysql
- MySQL 5.1 源码安装
- Mysql的源码安装
- mysql源码安装
- 源码安装mysql
- linux mysql 源码安装
- 源码安装mysql
- 源码安装mysql
- cmake安装mysql源码
- 源码编译安装mysql
- MYSQL源码安装步骤
- 处理 1 counts of IllegalAnnotationExceptions Class has two properties of the same name "ITEM"
- MVP注册登录
- 如何使用memcache缓存
- 网络流:最大流以及费用流的总结
- C语言之对多维数组的简易理解
- MySQL源码安装
- Python 学习笔记-错误记录
- C++矩阵计算库Eigen3之:线性代数与分解
- golang实现简单的反射demo
- C++中动态类型与动态绑定、虚函数、运行时多态的实现
- CSAPP第五章小结
- 数字字符串转换为字母组合的种类数 动态规划
- github一些用法
- 对话系统工程师