linux采用binary方式安装mysql
作者:Qingdong.Li 时间:2024-01-27 19:40:18
本文实例为大家分享了linux采用binary方式安装mysql的具体步骤,供大家参考,具体内容如下
1、下载binary文件
在官网上下载 mysql-5.6.36-linux-glibc2.5-i686.tar.gz.
2、解压文件并移动到/usr/local/mysql目录下
tar -zxvf mysql-5.6.36-linux-glibc2.5-i686.tar.gz
3、创建用户组和用户并配置
groupadd mysql
useradd mysql -g mysql
chown -R mysql /usr/local/mysql/
chgrp -R mysql /usr/local/mysql/
4、安装及初始化
#安装mysql
/usr/local/mysql/scripts/mysql_install_db --user=root
#配置mysql启动文件
cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
#将mysqld服务添加到系统中
cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
#将mysql命令软链接到系统命令中
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
5、启动服务测试
service mysqld start
mysql -u root
来源:http://www.cnblogs.com/liqingdong/archive/2017/08/12/7348473.html
标签:linux,binary,mysql
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
浅析python打包工具distutils、setuptools
2021-03-30 14:45:14
![](https://img.aspxhome.com/file/2023/2/65132_0s.png)
安全地关闭MySQL服务的教程
2024-01-16 23:50:13
日文片假名导致 Access 搜索“内存溢出”
2009-07-07 22:23:00
![](https://img.aspxhome.com/file/UploadPic/20097/7/japancode-54s.gif)
关于淘宝商城新版的一点看法
2009-06-28 16:00:00
![](https://img.aspxhome.com/file/UploadPic/20096/28/taobao_mall_2-49s.png)
Python tkinter模块弹出窗口及传值回到主窗口操作详解
2023-09-27 23:03:05
![](https://img.aspxhome.com/file/2023/3/61173_0s.jpg)
python使用pil生成图片验证码的方法
2022-03-08 18:39:24
MySQL中delimiter的作用
2010-10-25 20:26:00
Python代码执行时间测量模块timeit用法解析
2023-06-13 16:14:04
![](https://img.aspxhome.com/file/2023/7/117567_0s.png)
Python类的基础入门知识
2021-07-09 04:07:25
Docker部署Python爬虫项目的方法步骤
2023-03-27 14:45:21
JSON.parse处理非标准Json数据出错的解决
2024-04-18 09:49:12
一个月入门Python爬虫学习,轻松爬取大规模数据
2022-03-10 11:04:26
![](https://img.aspxhome.com/file/2023/8/101148_0s.jpg)
pycharm最新免费激活码至2099年(21.3.18亲测可用)
2023-10-02 09:53:20
![](https://img.aspxhome.com/file/2023/5/90685_0s.png)
如何限制上传文件的大小?
2010-06-09 18:47:00
python3.7中安装paddleocr及paddlepaddle包的多种方法
2022-08-11 00:00:57
![](https://img.aspxhome.com/file/2023/5/70775_0s.png)
MySQL组提交group commit详解
2024-01-21 05:33:09
![](https://img.aspxhome.com/file/2023/7/79147_0s.gif)
PHP概率计算函数汇总
2023-11-19 08:06:19
Mac上安装Mysql的详细步骤及配置
2024-01-29 12:20:46
![](https://img.aspxhome.com/file/2023/6/129886_0s.jpg)
python编程开发时间序列calendar模块示例详解
2023-04-25 14:59:19
![](https://img.aspxhome.com/file/2023/7/131447_0s.jpg)
Python如何调用JS文件中的函数
2022-11-21 01:23:11
![](https://img.aspxhome.com/file/2023/0/67850_0s.png)