登录
首页 >  数据库 >  MySQL

切换阿里镜像源,加速MySQL下载安装

来源:SegmentFault

时间:2023-02-24 21:07:32 306浏览 收藏

知识点掌握了,还需要不断练习才能熟练运用。下面golang学习网给大家带来一个数据库开发实战,手把手教大家学习《切换阿里镜像源,加速MySQL下载安装》,在实现功能的过程中也带大家重新温习相关知识点,温故而知新,回头看看说不定又有不一样的感悟!

一、参考链接

阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)

mysql镜像-mysql下载地址-mysql安装教程-阿里巴巴开源镜像站 (aliyun.com)

二、MySQL简介

MySQL数据库服务是一种完全托管的数据库服务,用于部署云原生应用程序。HeatWave是一个集成的高性能分析引擎,可将MySQL性能提高400倍。

下载地址https://mirrors.aliyun.com/my...

三、MySQL安装

# 下载安装mysql的repo源(基于CentOS系统下)
[root@centos ~]# wget http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm
--2021-12-24 20:47:58--  http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.58.112.230
Connecting to repo.mysql.com (repo.mysql.com)|23.58.112.230|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8984 (8.8K) [application/x-redhat-package-manager]
Saving to: 鈥榤ysql57-community-release-el7-7.noarch.rpm鈥?

100%[==============================================================================>] 8,984       --.-K/s   in 0s

2021-12-24 20:47:58 (80.1 MB/s) - 鈥榤ysql57-community-release-el7-7.noarch.rpm鈥?saved [8984/8984]

#  安装mysql的repo源
[root@centos ~]# rpm -ivh mysql57-community-release-el7-7.noarch.rpm
warning: mysql57-community-release-el7-7.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql57-community-release-el7-7  ################################# [100%]
[root@centos ~]#

安装MySQL

[root@centos ~]# yum install -y mysql-server mysql-devel mysql
[root@centos ~]# rpm -qa | grep mysql
mysql-community-server-5.7.36-1.el7.x86_64
mysql57-community-release-el7-7.noarch
mysql-community-common-5.7.36-1.el7.x86_64
mysql-community-client-5.7.36-1.el7.x86_64
mysql-community-devel-5.7.36-1.el7.x86_64
mysql-community-libs-5.7.36-1.el7.x86_64
mysql-community-libs-compat-5.7.36-1.el7.x86_64
[root@centos ~]#

image-20211223210630292

四、启动MySQL服务

[root@centos ~]# systemctl start mysqld
[root@centos ~]# systemctl enable mysqld
[root@centos ~]# systemctl status mysqld
鈼? mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2021-12-24 21:07:35 CST; 14s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
 Main PID: 2246 (mysqld)
   CGroup: /system.slice/mysqld.service
           鈹斺攢2246 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Dec 24 21:07:31 centos systemd[1]: Starting MySQL Server...
Dec 24 21:07:35 centos systemd[1]: Started MySQL Server.
[root@centos ~]#

image-20211223210812105

今天关于《切换阿里镜像源,加速MySQL下载安装》的内容就介绍到这里了,是不是学起来一目了然!想要了解更多关于mysql的内容请关注golang学习网公众号!

声明:本文转载于:SegmentFault 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>