当前位置:网站首页>Centos7 installing MySQL 5.7
Centos7 installing MySQL 5.7
2022-06-12 20:12:00 【Running forward on a snail】
1. add to repo
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
2. install MySQL 5.7 Server
yum install mysql-community-server
This step may occur ” abnormal 1“ Phenomena shown in , After the solution as provided , Perform the steps again 2.
3. start-up MySQL Service
service mysqld start
4. Get temporary password
grep 'A temporary password' /var/log/mysqld.log |tail -1
Output
2022-06-09T16:09:21.898987Z 1 [Note] A temporary password is generated for [email protected]: qjdC0<O<GRC5
5. Sign in mysql
mysql -h localhost -uroot -pqjdC0<O<GRC5;
You need to change your password after logging in , Otherwise, the next operation cannot be carried out .
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new-password';
6. view the database
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
Here we are , Installation successful .
7. see mysql edition
mysql -V
# result
mysql Ver 14.14 Distrib 5.7.38, for Linux (x86_64) using EditLine wrapper
abnormal 1:GPG key Incorrect
Abnormal phenomenon :
The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
Failing package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
terms of settlement :
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
Refer to the connection : https://tecadmin.net/install-mysql-5-7-centos-rhel/
边栏推荐
- Negative remainder problem
- What does MySQL full value match mean
- 代理与反射
- The joint empowerment plan of Baidu PaddlePaddle large enterprise open innovation center was launched! Help Pudong to upgrade its industry intelligently
- System log
- The latest Ningxia construction safety officer simulation question bank and answers in 2022
- Using / developing private plug-ins in traifik proxy 2.5 (traifik official blog)
- Experience Technology Department of ant group launched the 2023rd school recruitment
- 用户权限和组权限
- Deep feature synthesis and genetic feature generation, comparison of two automatic feature generation strategies
猜你喜欢

Reading small program based on wechat e-book graduation design (4) opening report

PostgreSQL database replication - background first-class citizen process walreceiver PG_ stat_ wal_ Receiver view

Demand and business model innovation - demand 3- demand engineering process

User and group permissions

【GAMES101】课堂笔记8–着色(着色频率、图形管线、纹理映射)

Alipay payment episode 11: monitoring after successful payment callback

Negative remainder problem

【生成对抗网络学习 其三】BiGAN论文阅读笔记及其原理理解

Implementation of exec function and shell

Using / developing private plug-ins in traifik proxy 2.5 (traifik official blog)
随机推荐
PostgreSQL数据库复制——后台一等公民进程WalReceiver pg_stat_wal_receiver视图
Blue Bridge Cup basic-15 VIP question string comparison
Axure RP 9 for MAC (interactive product prototyping tool) Chinese version
Process accounting, process time, daemon
centos7 安装 mysql 5.7
In 2022, FISCO bcos MVP recognized that the channel was open and invited you to become an open source leader
system()
If you master these skills, you can also write a high score resume in the eyes of HR
Macro definitions and functions
The Milvus graphical management tool Attu is coming!
QT -- how to get the contents of selected cells in qtableview
[leetcode] small thinking of optimal division
PostgreSQL database replication - background first-class citizen process walreceiver PG_ stat_ wal_ Receiver view
[splishsplash] custom exporter
Demand and business model innovation-4-strategy
Wechat e-book reading applet graduation design completion works (8) graduation design thesis template
Demand and business model analysis -6- five topics
Kyma application connectivity feature introduction
进程的创建fork()、消亡wait()
House raiding 3