Centos6.5在线安装mysql 8.0详细教程
作者:ASIH 时间:2024-01-15 01:02:57
Centos6.5在线安装mysql 8.0的顺序如下,希望大家可以顺利进行安装。
Mysql卸载从下往上顺序
[root@localhost /]# rpm -e --nodeps qt-MySQL-4.6.2-26.el6_4.x86_64
[root@localhost /]# rpm -e --nodeps mysql-server-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-libs-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-devel-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -qa | grep mysql
添加在线Mysql源
cd /etc/yum.repos.d/
vi mysql.repo
# Enable to use MySQL 8.0
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
验证正确的subrepositories已启用和禁用通过运行以下命令来检查它的输出(DNF启用系统,取代百胜在DNF的命令)
yum repolist enabled | grep mysql
YUM安装mysql
yum install -y mysql-community-common mysql-community-libs mysql-community-client mysql-community-server mysql-community-devel
启动Mysql服务
service mysqld start
查看MySQL服务器的状态
service mysqld status
设置开机启动
chkconfig mysqld on
生成随机密码
grep 'temporary password' /var/log/mysqld.log
重新登陆
mysql -uroot -p
b/xE8hdZoEwJ
配置Mysql 密码以及权限
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Report@123';
允许root用户在任何地方进行远程登录,并具有所有库任何操作权限
[code]GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Report@123' WITH GRANT OPTION;
FLUSH PRIVILEGES;
精彩专题分享:mysql不同版本安装教程 mysql5.7各版本安装教程
标签:Centos6.5,mysql8.0
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
一起来学习Python的列表
2022-08-04 06:06:23
mysql获取随机数据的方法
2024-01-14 03:30:21
python中下标和切片的使用方法解析
2022-10-26 07:14:52
python中的字符串占位符的"{0:2}"
2021-04-28 20:23:39
mysql运行net start mysql报服务名无效的解决办法
2024-01-17 06:12:15
![](https://img.aspxhome.com/file/2023/6/108876_0s.jpg)
联邦学习FedAvg中模型聚合过程的理解分析
2023-09-28 02:29:48
![](https://img.aspxhome.com/file/2023/2/127232_0s.png)
python爬虫将js转化成json实现示例
2021-10-20 15:32:31
![](https://img.aspxhome.com/file/2023/0/80640_0s.png)
矩形相交以及求出相交的区域的原理解析
2023-08-17 18:39:09
![](https://img.aspxhome.com/file/2023/2/123762_0s.jpg)
pandas 选取行和列数据的方法详解
2022-12-29 19:28:58
![](https://img.aspxhome.com/file/2023/1/124761_0s.png)
asp如何用下拉列表显示数据库里的内容?
2010-06-16 09:54:00
python操作MySQL数据库的方法分享
2024-01-13 16:11:54
python实现简单反弹球游戏
2021-05-06 23:25:45
![](https://img.aspxhome.com/file/2023/1/117311_0s.jpg)
js 原型对象和原型链理解
2024-04-23 09:20:23
![](https://img.aspxhome.com/file/2023/2/135592_0s.jpg)
使用vue打包时gzip压缩的两种方案
2024-05-21 10:29:45
![](https://img.aspxhome.com/file/2023/1/123931_0s.jpg)
python 使用xlsxwriter循环向excel中插入数据和图片的操作
2023-01-30 15:08:47
![](https://img.aspxhome.com/file/2023/9/78779_0s.jpg)
python数据结构之面向对象
2021-04-09 08:02:06
![](https://img.aspxhome.com/file/2023/0/94120_0s.png)
python 安全地删除列表元素的方法
2022-11-20 16:21:35
Python实现超快窗口截图功能详解
2023-11-05 13:54:07
![](https://img.aspxhome.com/file/2023/5/63945_0s.png)
C#连接数据库的方法
2024-01-21 16:28:40
Jupyter Notebook运行代码无反应问题及解决方法
2023-07-21 17:38:04
![](https://img.aspxhome.com/file/2023/4/110064_0s.png)