基于centos7快速安装mysql5.7教程解析
作者:秋风飒飒吹 时间:2024-01-26 14:59:28
一.
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
二.
yum -y localinstall mysql57-community-release-el7-11.noarch.rpm
三.
yum -y install mysql-community-server
四.
systemctl start mysqld<br>ps -ef | grep mysql
五.mysql默认密码
cat /var/log/mysqld.log
登陆
mysql -uroot -pykO:DNGXx5ee
七.修改默认密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Qwe340721@';
设置允许远程登录
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Qwe340721@' WITH GRANT OPTION;
退出
exit;
八.防火墙开放3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
九.配置mysql默认编码为utf-8
vim /etc/my.cnf<br><br>
character_set_server=utf8
init_connect='SET NAMES utf8'
十.重启服务
systemctl restart mysqld
来源:https://www.cnblogs.com/wwjj4811/p/12793318.html
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
解决项目pycharm能运行,在终端却无法运行的问题
asp实现将人民币数字改为大写
Python Matplotlib实现三维数据的散点图绘制
![](https://img.aspxhome.com/file/2023/2/87672_0s.jpg)
修改Linux下MySQL 5.0的默认连接数
将HTML表单数据存储为XML格式
Vue结合Video.js播放m3u8视频流的方法示例
解决Python中回文数和质数的问题
![](https://img.aspxhome.com/file/2023/9/87869_0s.jpg)
聊聊QT添加MySQL驱动依赖的问题
![](https://img.aspxhome.com/file/2023/9/118459_0s.png)
MySQL8.0 索引优化invisible index详情
Linux下彻底卸载mysql详解
![](https://img.aspxhome.com/file/2023/8/69868_0s.jpg)
Python利用 SVM 算法实现识别手写数字
![](https://img.aspxhome.com/file/2023/2/85142_0s.png)
Python+random模块实现随机抽样
![](https://img.aspxhome.com/file/2023/4/92374_0s.jpg)
python使用cv2库、下载opencv库的方法
![](https://img.aspxhome.com/file/2023/9/117309_0s.png)
python 获取list 长度
关于select元素的两个小问题
详解Python的爬虫框架 Scrapy
![](https://img.aspxhome.com/file/2023/2/115092_0s.png)
解决pycharm安装后代码区不能编辑的问题
![](https://img.aspxhome.com/file/2023/1/121701_0s.jpg)
javascript获取来源的URL代码
一个ASP站内搜索的实例源代码
Golang实现简易的命令行功能
![](https://img.aspxhome.com/file/2023/4/107354_0s.jpg)