mysql 5.7.17 安装配置方法图文教程(CentOS7)
作者:兔子鱼兮 时间:2024-01-19 01:09:22
CentOS7安装mysql笔记
1 CentOS7默认安装mariadb数据库,卸载mariadb。
rpm -qa|grep mariadb
yum remove mariadb-libs.x86_64
2 配置YUM源
1)下载mysql源安装包
wget http://xiazai.jb51.net/201612/yuanma/mysql57YUM(jb51.net).rar
2)安装mysql源
yum localinstall mysql57-community-release-el7-9.noarch.rpm
3)检查mysql源是否安装成功
yum repolist enabled | grep “mysql.-community.”
3 安装MySQL
yum install mysql-community-server
4 启动MySQL服务
1)启动
systemctl start mysqld
2)查看MySQL的启动状态
5 开机启动
systemctl enable mysqld
systemctl daemon-reload
6修改root默认密码
1)mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码。
通过grep ‘temporary password' /var/log/mysqld.log找到root默认密码:
2)登录mysql
mysql -uroot -p
输入密码:
精彩专题分享:
mysql不同版本安装教程
mysql5.6各版本安装教程
mysql5.7各版本安装教程
mysql8.0各版本安装教程
标签:mysql5.7.17,mysql5.7,CentOS7
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
解决python xlrd无法读取excel文件的问题
2022-01-25 10:48:44
Python使用Pillow实现图像基本变化
2021-08-26 03:30:23
![](https://img.aspxhome.com/file/2023/7/124717_0s.png)
python用tkinter实现一个简易能进行随机点名的界面
2022-07-01 21:08:58
![](https://img.aspxhome.com/file/2023/2/135302_0s.png)
Golang 实现Redis 协议解析器的解决方案
2024-02-19 20:09:36
Python实现字符串逆序输出功能示例
2023-10-14 04:59:17
pyqt5 从本地选择图片 并显示在label上的实例
2022-12-12 17:48:04
![](https://img.aspxhome.com/file/2023/1/94001_0s.jpg)
Python反爬机制-验证码功能的具体实现过程
2023-02-05 18:53:19
![](https://img.aspxhome.com/file/2023/1/100981_0s.jpg)
Python Tensor FLow简单使用方法实例详解
2022-01-01 16:55:44
![](https://img.aspxhome.com/file/2023/2/109562_0s.png)
OpenCV学习之图像形态学处理详解
2022-02-19 15:45:39
![](https://img.aspxhome.com/file/2023/7/95157_0s.jpg)
python使用PIL和matplotlib获取图片像素点并合并解析
2021-09-07 15:41:45
![](https://img.aspxhome.com/file/2023/6/93606_0s.png)
Python 删除List元素的三种方法remove、pop、del
2021-06-14 20:58:52
Python深度学习之实现卷积神经网络
2021-08-11 01:57:01
![](https://img.aspxhome.com/file/2023/3/131603_0s.png)
SQL2005Express中导入ACCESS数据库的两种方法
2024-01-24 04:05:30
![](https://img.aspxhome.com/file/2023/5/106265_0s.jpg)
浅谈Python编程中3个常用的数据结构和算法
2022-02-11 20:15:04
javascript事件冒泡,事件捕获和事件委托详解
2024-04-10 14:02:47
python实现守护进程、守护线程、守护非守护并行
2021-02-03 09:06:56
Python selenium文件上传方法汇总
2022-12-01 04:47:29
mysql之跨库关联查询(dblink)问题
2024-01-20 21:54:54
![](https://img.aspxhome.com/file/2023/3/72433_0s.png)
Python中常用的8种字符串操作方法
2023-05-28 09:44:38
![](https://img.aspxhome.com/file/2023/6/87886_0s.jpg)
python中str内置函数用法总结
2022-06-23 10:22:45