当前位置:网站首页>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)
边栏推荐
- [acnoi2022] I have done it, but I can't
- Maya re deployment
- Rescue system -- the application of read-write separation
- [untitled]
- dataX使用指南
- Markdown to realize text link jump
- QPS, TPS, concurrent users, throughput relationship
- New technology practice, encapsulating the permission application library step by step with the activity results API
- String转Base64
- leetcode 1268. Search Suggestions System(搜索推荐系统)
猜你喜欢

ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction

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

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

ZUCC_ Principles of compiling language and compilation_ Experiment 05 regular expression, finite automata, lexical analysis

5 minutes, excellent customer service chat handling skills

Markdown to realize text link jump

MATLAB Camera Calibrator相机标定

ZUCC_编译语言原理与编译_实验04 语言与文法

Redis cluster data skew
![[micro services ~nacos] Nacos service providers and service consumers](/img/b7/47ecd6979ccfeb270261681d6130be.png)
[micro services ~nacos] Nacos service providers and service consumers
随机推荐
MySQL 因字符集问题插入中文数据时提示代码 :1366
[untitled]
日本大阪大学万伟伟研究员介绍基于WRS系统机器人的快速集成方法和应用
Rust procedure macro simply imitates Lombok function
Cloudbase database migration scheme
Use cpulimit to free up your CPU
api平台通用签名机制
Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
Promise的使用場景
How to configure networkpolicy for nodeport in kubernetes
Easydss anonymous live channel data volume instability optimization scheme sharing
获取屏幕宽高工具类
【微服务~Nacos】Nacos服务提供者和服务消费者
2021-06-24: find the length of the longest non repeating character substring in a string.
Markdown to realize text link jump
Take my brother to do the project. It's cold
05 Ubuntu installing mysql8
ZUCC_ Principles of compiling language and compilation_ Experiment 03 getting started with compiler
[acnoi2022] I have done it, but I can't
Export MySQL database to xxx SQL, set xxx The SQL file is imported into MySQL on the server. Project deployment.