当前位置:网站首页>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_编译语言原理与编译_实验06 07 语法分析 LL 分析
- Introduction to RCNN, fast RCNN and fast RCNN
- OpenCV to realize the basic transformation of image
- Two methods of QT exporting PDF files
- Why do you want to file? What are the advantages and disadvantages of website filing?
- uniapp 热更新后台管理
- leetcode 1268. Search Suggestions System(搜索推荐系统)
- 数据平台简介
- Qt导出PDF文件的两种方法
- Rust procedure macro simply imitates Lombok function
猜你喜欢

Centos7安装jdk8以及mysql5.7以及Navicat连接虚拟机mysql的出错以及解决方法(附mysql下载出错解决办法)

2021-03-09 comp9021 class 7 Notes

Opencv实现图像的基本变换

小黑ai4code代码baseline啃食1

ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析

JUC个人简单笔记

ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析

ZUCC_编译语言原理与编译_实验03 编译器入门

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

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language
随机推荐
JS merge multiple objects and remove duplicates
pymysql 向MySQL 插入数据无故报错
Several ways you can't move zero (sequel)
Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
ZUCC_ Principles of compiling language and compilation_ Experiment 05 regular expression, finite automata, lexical analysis
Take my brother to do the project. It's cold
(PKCS1) RSA 公私钥 pem 文件解析
String to Base64
Jenkins自动化部署,连接不到所依赖的服务【已解决】
App Startup
Shell basic operator -- arithmetic operator
How to mount a USB hard disk with NTFS file format under RHEL5 system
Common date formatter and QT method for obtaining current time
Shell basic operators -- relational operators
ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language
Why do you want to file? What are the advantages and disadvantages of website filing?
Easycvr invokes the interface parameter acquisition method and precautions of device video recording on the page
ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析
Smart power plant: how to make use of easycvr to build a safe, stable, green and environment-friendly intelligent inspection platform
How to replace the web player easyplayerproactivex Key in OCX?