linux安装mysql【linux】
- 前言
- 版权
- 推荐
- CentOS7.9安装mysql8.0【linux】
- yum安装
- rpm安装
- 最后
前言
2024-5-13 15:52:22
以下内容源自《【linux】》
仅供学习交流使用
版权
禁止其他平台发布时删除以下此话
本文首次发布于CSDN平台
作者是CSDN@日星月云
博客主页是https://jsss-1.blog.csdn.net
禁止其他平台发布时删除以上此话
推荐
yum 安装 MySQL
第01章 Linux下MySQL的安装与使用【1.MySQL架构篇】【MySQL高级】
CentOS7.9安装mysql8.0
CentOS7.9安装mysql8.0【linux】
yum安装
yum安装出现问题
还是使用rpm安装吧
下面安装有问题
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.33-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.33-1.el7.x86_64.rpm-bundle.tarrpm -qa|grep mariadb #检查是否安装mariadb
rpm -e --nodeps mariadb-libs #卸载
rpm -qa|grep mariadb #再次检查rpm -qa|grep libaio #查看是否安装libaio
yum -y install libaio #yum进行安装rpm -qa|grep net-tools #查看是否安装net-tools
yum -y install net-tools #yum进行安装yum -y install openssl-develrpm -ivh mysql-community-common-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-client-plugins-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-libs-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-devel-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-client-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-icu-data-files-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-server-8.0.33-1.el7.x86_64.rpm --nodeps --forcesystemctl start mysqld #启动
systemctl status mysqld #查看状态
systemctl enable mysqld.service #自启动cat /var/log/mysqld.log
s:YkcxyBf2Dumysql -uroot -ps:YkcxyBf2DuALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Abc123!@';
quitmysql -uroot -p
Abc123!@use mysql;
update user set host='%' where user='root';
flush privileges;
rpm安装
具体的操作可以看推荐文章
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.33-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.33-1.el7.x86_64.rpm-bundle.tarrpm -qa|grep mariadb #检查是否安装mariadb
rpm -e --nodeps mariadb-libs #卸载
rpm -qa|grep mariadb #再次检查rpm -qa|grep libaio #查看是否安装libaio
yum -y install libaio #yum进行安装rpm -qa|grep net-tools #查看是否安装net-tools
yum -y install net-tools #yum进行安装yum -y install openssl-develrpm -ivh mysql-community-common-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-client-plugins-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-libs-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-devel-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-client-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-icu-data-files-8.0.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-server-8.0.33-1.el7.x86_64.rpm --nodeps --forcesystemctl start mysqld #启动
systemctl status mysqld #查看状态
systemctl enable mysqld.service #自启动cat /var/log/mysqld.log
s:YkcxyBf2Dumysql -uroot -ps:YkcxyBf2DuALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Abc123!@';
quitmysql -uroot -p
Abc123!@use mysql;
update user set host='%' where user='root';
flush privileges;
最后
2024-5-13 20:13:55
迎着日光月光星光,直面风霜雨霜雪霜。