CentOS7版本安装Mysql8.0.20版本数据库

MySQL8.2.0下载安装 4、点击No thanks,just start my download,就是只是开始下载的意思,点击下载,等待下载完成。5、新建空白行,或直接双击紧挨的空白行,把复制的mysql的安装路径bin路径复制粘贴过来,确定,确定,确定。1、上面点击finish后,自动勾选了run mysql配置,自动会打开配置页面,点击Next。1、双击安装包,进入安装流程,勾选我同意 I accept,next。2、根据自己需要选择,我选的第二个,可以自己改安装路径。2、默认,点击Next,记住默认端口3306。 阅读详情

CentOS7安装Mysql8.0.20步骤:
官网下载8.0.20Mysql包(bundle版本)
1.
创建mysql文件夹:

[root@localhost ~]# mkdir /usr/local/mysql
[root@localhost ~]# cd /usr/local/mysql/

将下载的mysql包放在创建的MySQL文件夹内:

[root@localhost mysql]# ll
总用量 815000
-rw-r--r--. 1 root root 834560000 5月  13 10:44 mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar

mysql的安装版MD5码查看是否和官网上的相对应:

[root@localhost mysql]# md5sum mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar 
c8d062c1f74d9aab7dbdd5300b202b6e  mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar

将mysql的包解压得到几个内安装包:

[root@localhost mysql]# tar -xvf mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar 
mysql-community-libs-8.0.20-1.el7.x86_64.rpm
mysql-community-embedded-compat-8.0.20-1.el7.x86_64.rpm
mysql-community-test-8.0.20-1.el7.x86_64.rpm
mysql-community-common-8.0.20-1.el7.x86_64.rpm
mysql-community-devel-8.0.20-1.el7.x86_64.rpm
mysql-community-client-8.0.20-1.el7.x86_64.rpm
mysql-community-libs-compat-8.0.20-1.el7.x86_64.rpm
mysql-community-server-8.0.20-1.el7.x86_64.rpm
[root@localhost mysql]# ll
总用量 1630004
-rw-r--r--. 1 root root  834560000 5月  13 10:44 mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar
-rw-r--r--. 1 7155 31415  48822048 3月  27 20:14 mysql-community-client-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415    623508 3月  27 20:14 mysql-community-common-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415   8129988 3月  27 20:14 mysql-community-devel-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415  23599996 3月  27 20:14 mysql-community-embedded-compat-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415   4667884 3月  27 20:14 mysql-community-libs-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415   1277128 3月  27 20:14 mysql-community-libs-compat-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 512057468 3月  27 20:15 mysql-community-server-8.0.20-1.el7.x86_64.rpm
-rw-r--r--. 1 7155 31415 235369940 3月  27 20:16 mysql-community-test-8.0.20-1.el7.x86_64.rpm

依次安装顺序时common,libs,libs-compat,client,server:

警告:mysql-community-common-8.0.20-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID ********: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-common-8.0.20-1.e################################# [100%]
警告:mysql-community-libs-8.0.20-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID ********: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-libs-8.0.20-1.el7################################# [100%]
警告:mysql-community-libs-compat-8.0.20-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID ********: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-libs-compat-8.0.2################################# [100%]
警告:mysql-community-client-8.0.20-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID ********: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-client-8.0.20-1.e################################# [100%]
警告:mysql-community-server-8.0.20-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID ********: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-server-8.0.20-1.e################################# [100%]

编辑一下/etc/my.cnf文件:
在最下面增加一行:

lower_case_table_names=1

initialize初始化:

[root@localhost mysql]# mysqld --initialize
[root@localhost mysql]# 

更改一下权限:

[root@localhost mysql]# chown -R mysql:mysql /var/lib/mysql
[root@localhost mysql]# ll  /var/lib/
总用量 8
drwxr-xr-x. 4 root           root             32 5月  13 10:07 AccountsService
drwxr-xr-x. 2 root           root              6 8月   3 2017 alsa
drwxr-xr-x. 2 root           root            274 5月  13 10:14 alternatives
drwx------. 3 root           root             18 5月  13 10:17 authconfig
drwxr-xr-x. 2 root           root              6 8月   3 2017 bluetooth
drwxr-xr-x. 2 chrony         chrony            6 8月   4 2017 chrony
drwxr-xr-x. 3 root           root             17 5月  13 10:06 color
drwxr-xr-x. 4 colord         colord           67 5月  13 10:23 colord
drwxr-xr-x. 2 root           root              6 11月  7 2016 dbus
drwxr-xr-x. 2 root           root              6 8月   4 2017 dhclient
drwxr-xr-x. 2 root           root              6 8月   3 2017 dnsmasq
drwxr-xr-x. 3 root           root             34 5月  13 10:24 flatpak
drwxr-xr-x. 2 root           root              6 6月  24 2014 fprint
drwxr-xr-x. 2 root           root              6 11月  5 2016 games
drwxrwx--T. 5 gdm            gdm              70 5月  13 10:23 gdm
drwxr-xr-x. 2 geoclue        geoclue           6 8月   2 2017 geoclue
drwxr-xr-x. 4 root           root             55 5月  13 02:22 gssproxy
drwxr-xr-x. 2 root           root              6 8月   2 2017 hyperv
drwxr-xr-x. 2 root           root              6 8月   5 2017 initramfs
drwxr-xr-x. 8 root           root             90 5月  13 10:07 iscsi
drwxr-xr-x. 8 root           root             93 5月  13 10:08 libvirt
drwxr-xr-x. 2 root           root              6 11月  6 2016 lldpad
drwxr-xr-x. 2 root           root              6 8月   2 2017 logrotate
drwx------. 2 root           root              6 5月  13 10:06 machines
drwxr-xr-x. 2 root           root             37 5月  13 02:22 misc
drwxr-x---. 2 root           slocate           6 11月  5 2016 mlocate
drwxr-x--x. 6 mysql          mysql          4096 5月  13 11:05 mysql

启动mysql服务看一下服务状态,看Active这一行的状态:

[root@localhost mysql]# systemctl start mysqld.service 
[root@localhost mysql]# systemctl status mysqld.service 
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since 三 2020-05-13 11:09:35 CST; 8s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 16795 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 16829 (mysqld)
   Status: "Server is operational"
   CGroup: /system.slice/mysqld.service
           └─16829 /usr/sbin/mysqld

5月 13 11:09:24 localhost.localdomain systemd[1]: Starting MySQL Server...
5月 13 11:09:35 localhost.localdomain systemd[1]: Started MySQL Server.
[root@localhost mysql]#

查看数据库初始的密码:

[root@localhost mysql]# cat /var/log/mysqld.log | grep password
2020-05-13T03:05:16.041238Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: n_t#tk.Z?7)f

使用初始密码登陆数据库:后更改密码:

[root@localhost mysql]# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.20

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
mysql> ALTER user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.04 sec)

mysql> exit
Bye
[root@localhost mysql]# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.20 MySQL Community Server - GPL

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT VERSION;
ERROR 1054 (42S22): Unknown column 'VERSION' in 'field list'
mysql> SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 8.0.20    |
+-----------+
1 row in set (0.00 sec)

mysql>

到此可以正常登陆数据库了,可以自行查找开启远程方式。

Centos 7 安装 MySQL8.0(通过 rpm 安装包进行安装) 环境:MySQL8.0.17 x 64 rpm、CentOS7.6 x 64位、wget下载工具、Navicat for mysql11(用于测试数据库连接) 删除MariaDB(若没有可以跳过) (由于MySQL在CentOS7中收费了,所以已经不支持MySQL了,取而代之在CentOS7内部集成了mariadb,而安装MySQL的话会和MariaDB的文件冲突,所以需要先卸载掉Ma... 阅读详情

相关推荐

Centos7离线安装Mysql8.0版本

Centos7,离线安装mysql8.0版本,包括前置依赖,二进制包。免密登录。开启远程登录功能

swg321321的博客 1406

CentOS7使用RPM安装MySQL8.0.20

CentOS7安装MySQL

weixin_44810760的博客 758

因时机器人-灵巧手配置方案(Ubuntu18.04)

因时机器人-灵巧手配置方案(Ubuntu18.04)

CH_monsy的博客 3851

mysql8022安装教程_mysql安装教程8.0.20,mysql详细安装教程

1、浏览器搜索mysql下载安装2、登录或者不登录下载3、下载的是一个压缩包,直接解压缩,无需安装4、新建my.ini文件,内容如下关于sql_mode,像下面这个报错,就是因为group by字段必须完全显示在查询列里,所以去掉这个模式,就不在报错了。Caused by: java.sql.SQLSyntaxErrorException: Expression #13 of SELECT lis...

weixin_36406678的博客 1013

从零到一:Mx_yolo本地训练与K210部署实战指南

本文详细介绍了从零开始进行Mx_yolo本地模型训练到K210部署的全流程实战指南。涵盖环境配置、数据准备、模型训练与调优、模型转换及K210部署等关键步骤,并提供了常见问题解决方案和性能优化技巧,帮助开发者高效完成AI模型在嵌入式设备的落地应用。

weixin_29081163的博客 252

手把手教你用Cesium和RayMarching实现逼真体积云(附完整Shader代码)

本文详细介绍了如何利用Cesium和RayMarching技术实现逼真的体积云效果,包括环境准备、核心逻辑、云层建模和光照增强等关键步骤,并提供了完整的Shader代码。通过噪声函数选型、动态风场模拟和多重散射近似等技术,开发者可以在数字地球可视化项目中创建沉浸式天气效果,显著提升场景的真实感。

weixin_29230649的博客 416

CentOS8下MySQL8的安装(在线版)

文章目录MySQL安装移除旧版下载MySQL安装MySQL修改my.cnf启动MySQL服务更新root密码并新建用户root本地账户dba本地账户dba远程账户 MySQL安装 移除旧版 检查系统已安装的MySQL/MariaDB rpm -qa |grep mysql rpm -qa |grep mariadb 移除已安装的mariadb组件 rpm -ev --nodeps mariadb-libs 下载MySQL cd /tmp wget https://cdn.mysql.com//D

月上千秋河 228

docker拉取镜像报错:Error response from daemon: Get “https://registry-1.docker.io/v2/“: dial tcp

docker拉取镜像报错:Error response from daemon: Get “https://registry-1.docker.io/v2/“: dial tcp

m0_55333789的博客 1558

Linux下安装MySQL8.0(超详细)

Linux下安装MySQL8.0(超详细)

u012386080的博客 5125

docker部署neo4j,设置密码。Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authenti

卷,设置NEO4J_AUTH将不会起作用,因为该数据库已经配置了身份验证。Neo4j Docker 服务将会启动,但您需要使用已与该数据库关联的用户名和密码才能登录。这里,使用了环境变量NEO4J_AUTH,设置了用户名为neo4j,密码为neo4jneo4j。这个命令还是比较全的,包括设置密码,设置端口,挂载外部的数据目录等。原因嘛,就是使用docker创建的neo4j,登录不上。把👆提到的外挂的数据,都清空了,再重新来一遍。有一种情况下,这样设置密码,并不会成功。如果不出意外,目前就算大功告成了。

xiezhipu的博客 564

PyTorch生成式人工智能(25)——基于Transformer实现机器翻译

不同于循环神经网络 (RNN) 按顺序处理数据,Transformer 以并行的方式处理输入数据(例如句子)。这种并行处理提高了效率,但并未使其能够识别输入的顺序。为了解决这个问题,Transformer 向输入的词嵌入中添加了位置编码。这些位置编码是分配给输入序列中每个位置的独特向量,其维度与输入词嵌入对齐。本节将以英语到法语的翻译为例,通过介绍如何训练 Transformer 模型将英语句子转换为法语,深入理解 Transformer 的架构及自注意力机制的运作方式。

盼小辉丶的博客 2760

centos7 mysql版本选择_CentOS7版本安装Mysql8.0.20版本数据库的详细教程

相关阅读:MySQL8.0.20安装教程及其安装问题详细教程 https://www.jb51.net/article/186202.htmmysql8.0.20下载安装及遇到的问题(图文详解) https://www.jb51.net/article/186208.htmCentOS7安装Mysql8.0.20步骤:https://dev.mysql.com/doc/relnotes/mys...

weixin_39608988的博客 652

[QMT量化交易小白入门]-九、如何用Python记录每一笔交易和调试,报错信息?

定义一个函数来获取日志记录器。: 返回全局的日志记录器,以便在其他地方调用。

木头大左的博客 2144

centos mysql 版本_CentOS7版本安装Mysql8.0.20版本数据库的详细教程

相关阅读:CentOS7安装Mysql8.0.20步骤:官网下载有时速度比较慢,直接点击链接也可以下载:mysql 8.0.20官网下载8.0.20Mysql包(bundle版本)1.创建mysql文件夹:[root@localhost ~]# mkdir /usr/local/mysql[root@localhost ~]# cd /usr/local/mysql/将下载的mysql包放在创建的...

weixin_28848917的博客 260

【OpenCV实战】简洁易懂的车牌号识别Python+OpenCV实现“超详解”(含代码)

简洁易懂的车牌号识别Python实现(含代码)1、整体思路2、代码详解 1、整体思路 2、代码详解

qq_40784418的博客 9万+

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

centos 安装mysql版本_CentOS7版本安装Mysql8.0.20版本数据库的详细教程

相关阅读:MySQL8.0.20安装教程及其安装问题详细教程 https://www.ddpool.cn/article/186202.htmmysql8.0.20下载安装及遇到的问题(图文详解) https://www.ddpool.cn/article/186208.htmCentOS7安装Mysql8.0.20步骤:https://dev.mysql.com/doc/re...

weixin_33305182的博客 210

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

centos7.6arm安装mysql8.0.17_CentOS7版本安装Mysql8.0.20版本数据库的详细教程

相关阅读:MySQL8.0.20安装教程及其安装问题详细教程 https://www.jb51.net/article/186202.htmmysql8.0.20下载安装及遇到的问题(图文详解) https://www.jb51.net/article/186208.htmCentOS7安装Mysql8.0.20步骤:https://dev.mysql.com/doc/relnotes/mys...

weixin_39588084的博客 332

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

CentOS 7 傻瓜式安装 MySQL 8.0+ 版本数据库(8.0.20)

1. 从MySQL官网,下载MySQL所需要的安装包。 网址:https://dev.mysql.com/downloads/mysql/ Select Operating System: 选择 Red Hat(因为CentOS 是基于红帽的);Select OS Version: 选择 linux 7 下载第一个: mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar 2. 点击 No thanks, just start my download. 进行下载,

kingrootZ的博客 1046

dbd mysql 4.028.tar_CentOS7版本安装Mysql8.0.20版本数据库的详细教程

相关阅读:MySQL8.0.20安装教程及其安装问题详细教程 https://www.webkfz.com/article/186202.htmmysql8.0.20下载安装及遇到的问题(图文详解) https://www.webkfz.com/article/186208.htmCentOS7安装Mysql8.0.20步骤:https://dev.mysql.com/doc/relnotes...

weixin_39643679的博客 119

centos7 安装mysql8_二进制安装安装mysql 8.0.20

MySQL最新版本8.0.20正式发布。与之前8.0的系列版本一样,这次的发行版除了包含缺陷修复,也同样包括新功能。下面快速浏览一下。关键字:hash join、InnoDB双写缓冲、二进制日志事务压缩。 下载mysql8.0.20二进制安装包 环境:centos7 打开mysql官方下载链接 https://dev.mysql.com/downloads/mysql/ 然后选择操作系统为linu...

weixin_39690401的博客 216

mysql8.0.20安装教程linux_Linux下安装mysql-8.0.20的教程详解

**Linux下安装mysql-8.0.20**环境介绍操作系统:CentOS 7mysql下载地址:https://dev.mysql.com/downloads/mysql/下载版本:mysql-8.0.20-linux-glibc2.12-x86_64.tar.xz卸载mysql查看是否安装过mysql,命令:find / -name mysql如果安装过,进行卸载:删除相关目录:删除配置文...

weixin_39856803的博客 1378

mysql5.7.8源码安装_Mysql5.7和8.0源码编译安装

注意事项:CentOS 8版本需要额外安装 libtirpc-devel 包CentOS 7版本安装mysql 8.0版本需要升级cmake,gcc包版本,升级后要注意处理旧版本包,例如建立新的软连接,或者干脆删除旧版本包。CentOS 8版本本身yum源中包的版本就比较新,可以直接使用dnf命令安装即可。源码安装mysql需要有boost库,最好事先下载好,然后在编译的时候指定boost路径,不...

weixin_33761747的博客 223

linux下安装mysql_Linux下安装mysql-8.0.20的教程详解

**Linux下安装mysql-8.0.20**环境介绍操作系统:CentOS 7mysql下载地址:https://dev.mysql.com/downloads/mysql/下载版本:https://www.ddpool.cn/softs/609101.htmlhttps://www.ddpool.cn/softs/609101.html卸载mysql查看是否安装过mysq...

weixin_33477290的博客 217

CentOS7安装MySQL8.0图文教程

原文:https://blog.csdn.net/weixin_42266606/article/details/80879571 1.下载 MySQL 所需要的安装包 网址:https://dev.mysql.com/downloads/mysql/ 2.Select Operating System: 选择 Red Hat ,CentOS 是基于红帽的,Sele...

eeprom的博客 166
上一篇: 关于新数据库配置DBCA后无法静默执行DBCA提示监听程序问题
下一篇: PL/SQL编程之oracle数据库重载函数包体
赡养
博客等级 码龄7年 31粉丝 23原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值