当前位置:网站首页>Centos7 installation of jdk8, mysql5.7 and Navicat connection to virtual machine MySQL and solutions (solutions to MySQL download errors are attached)
Centos7 installation of jdk8, mysql5.7 and Navicat connection to virtual machine MySQL and solutions (solutions to MySQL download errors are attached)
2022-06-24 08:42:00 【mYoshino】
JDK8 Download and install
use first VMwareWorkStation open Centos7 virtual machine .
And then use Xshell7 Perform remote login to the virtual machine , The reason why I use this is because it is very convenient .
Start by opening Xshell7, Get into root user
Enter the following command to enter opt Directory and create two folders
Get into opt Catalog [[email protected] software]# cd /opt
establish module Folder [[email protected] opt]# mkdir module
establish soft Folder [[email protected] opt]# mkdir software
jdk8-Linux download
After downloading, there is a folder , We just need the inside tar.gz file
Then drag the file directly to software In this directory !

Then use the command to extract the file
[[email protected] software]# tar -zxvf jdk-8u181-linux-x64.tar.gz -C /opt/module/

After unzipping, you need to jdk Configuration of environment variables
Input
cd /etc/profile.d
Get into profile.d Create a file after the directory to configure jdk Environment variables of
vim jdkenv.sh
Enter... After entering the file
export JAVA_HOME=/opt/module/jdk1.8.0_181
export PATH=$PATH:$JAVA_HOME/bin
After input : wq sign out
Then use source /etc/profile Reload , Make the script work
Once configured , Input java You can see java Has been configured successfully , Of course, you can also enter java -version
mysql5.7 Download and install
mysql The installation of the jdk So simple , because Centos7 It comes from the factory mariadb, So you need to uninstall this first .
Use instruction :
Inquire about :rpm -qa | grep -i mariadb
Delete :rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64
Check to see if there is mariadb, Delete if there is 
At the same time, confirm whether the machine has mysql, If there is , Delete , It's the same thing
Inquire about :rpm -qa | grep -i mysql
Delete :rpm -e --nodeps "mariadb-libs-5.5.68-1.el7.x86_64"
Make sure there is no mysql after , Use the following instructions to download the corresponding rpm file
Here you can create a place to put this rpm The package directory
For example, I was /opt/software Place this file under the
wget https://repo.mysql.com//mysql57-community-release-el7-9.noarch.rpm

appear Complete That is, after the completion , Continue with the following

After input
[[email protected] software]# rpm -ivh mysql57-community-release-el7-9.noarch.rpm

Then type
yum -y install mysql-community-server
If this problem occurs during the download process 
Then perform the following operations in sequence , The reason for the above prompt is Mysql Of GPG The upgrade , Need to reacquire
resolvent
Execute first : rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
Install the service again :yum -y install mysql-server

Then you can wait for the service to download , Start the service after downloading
systemctl start mysqld
Then check the service status
systemctl status mysqld
If this is the display status, it indicates that the installation has been successful 
Then use the command to view mysql The initial password for
grep 'temporary password' /var/log/mysqld.log

Then enter the command to log in and prepare to modify mysql Password 
Enter an instruction to find that the operation is not allowed , Will ask us to change the password 
We enter instructions to change the password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Mysql020114.'
Set the password , The password here requires :
Both case and upper case exist
There are numbers
There are special characters
After successfully changing the password, your mysql The configuration is successful , You can enter an instruction to verify 
Navicat Connect to mysql


Use the corresponding ip Address to connect , When testing the connection, if the connection fails , It may be because of the on your virtual machine mysql There is no operation to allow remote connection , The modification steps are as follows :
solve Navicat Unable to connect to... On the virtual machine mysql The way to
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
边栏推荐
- ZUCC_ Principles of compiling language and compilation_ Big job
- Common misconceptions in Tencent conference API - signature error_ code 200003
- 利用sonar做代码检查
- ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing
- 分布式 | 如何与 DBLE 进行“秘密通话”
- Three ways to uninstall Symantec Endpoint Protection Symantec
- Building a static website with eleventy
- ZUCC_编译语言原理与编译_大作业
- Shell basic operator -- arithmetic operator
- Send custom events in QT
猜你喜欢
![Fundamentals of 3D mathematics [17] inverse square theorem](/img/59/bef931d96883288766fc94e38e0ace.png)
Fundamentals of 3D mathematics [17] inverse square theorem

JUC personal simple notes

ZUCC_ Principles of compiling language and compilation_ Experiment 03 getting started with compiler

K8S部署高可用postgresql集群 —— 筑梦之路

Opencv实现图像的基本变换

liunx服务器 telnet 带用户名 端口登陆方法

Two methods of QT exporting PDF files

ZUCC_编译语言原理与编译_实验06 07 语法分析 LL 分析

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language

【微服务~Nacos】Nacos服务提供者和服务消费者
随机推荐
利用sonar做代码检查
After interviewing and tutoring several children, I found some problems!
日本大阪大学万伟伟研究员介绍基于WRS系统机器人的快速集成方法和应用
[life thinking] planning and self-discipline
什么是SRE?一文详解SRE运维体系
One development skill a day: how to establish P2P communication based on webrtc?
ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar
单目双视三维坐标确定
Opencv get (propid) common values
PHP code encryption + extended decryption practice
Easynvr and easyrtc platforms use go language to manage projects. Summary of the use of govendor and gomod
Application of tidb in Netease games
Matlab求解线性方程组Ax=b
[explain the difference between operation and maintenance and network engineering]
os. path. Pits encountered during the use of join()
Xtrabackup for data backup
ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析
ZUCC_编译语言原理与编译_大作业
Markdown to realize text link jump
Introduction to RCNN, fast RCNN and fast RCNN