当前位置:网站首页>Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
2022-07-30 23:48:00 【想做全栈测试的刘某】
- 检查 服务器 是否有mysql和Mariadb安装
rpm -qa | grep mysql
rpm -qa | grep mariadb
如果存在 卸载!!
rpm -e --nodeps mysql-libs-5.1.73-1.el6.x86_64
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
检查依赖库:
rpm -qa|grep libaio
rpm -qa|grep net-tools
没有装上 yum -y install libaio net-tools
- 安装
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-5.7.16-1.el7.x86_64.rpm-bundle.ta
rpm -ivh mysql-community-common-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.16-1.el7.x86_64.rpm
注意注意注意注意!!!!!! 按顺序依次安装
如果报这个错误
执行这个命令
yum install libnuma*
- 启动mysql
systemctl start mysqld.service
cat /var/log/mysqld.log | tail -n 10 #看登录的 用户和密码
mysql -uroot -p #登录
set global validate_password_policy=LOW; // 设置密码的验证强度等级为低
ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxx'; #重置密码 不要太简单
5.退出
quit结束战斗 sqlBoy
边栏推荐
- MPI简谈
- flutter 做底部的三个按键,有叠加,有填充
- DFS question list and template summary
- joiplay模拟器如何使用
- 动态修改el-tab-pane 的label(整理)
- Debezium error series 20: task failed to create new topic. Ensure that the task is authorized to create topics
- 【萌新解题】删除链表的倒数第 N 个结点
- PS基础学习(一)
- Reverse linked list - in-place inversion method
- el-upload添加请求头
猜你喜欢
随机推荐
el-upload添加请求头
HCIP第十六天笔记
Chevrolet Trailblazer, the first choice for safety and warmth for your family travel
递增三元组
[动态规划] 0-1背包问题和完全背包问题
Excel基础学习笔记
45. [Application of list linked list]
Learn Scope from a Compilation Perspective!
Apache Doris series: detailed steps for installation and deployment
JS中? ?和??=和?.和 ||的区别
PS Basic Learning (1)
Dry goods | 4 tips for MySQL performance optimization
2021GDCPC Guangdong University Student Programming Competition B.Byfibonacci
ZZULIOJ: 1120: the most value to exchange
Summary of BFS questions
ZZULIOJ:1119: 数列有序
joiplay模拟器如何导入游戏存档
Reverse linked list - head insertion inversion method
Shell编程条件语句 test命令 整数值,字符串比较 逻辑测试 文件测试
【LeetCode】55. 跳跃游戏 - Go 语言题解










