当前位置:网站首页>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)
边栏推荐
- Shell array
- 更改SSH端口号
- Jenkins自动化部署,连接不到所依赖的服务【已解决】
- Qt源码分析--QObject(2)
- Using ngrok for intranet penetration
- ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing
- ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar
- ZUCC_编译语言原理与编译_大作业
- [micro services ~nacos] Nacos service providers and service consumers
- Ordinary token
猜你喜欢

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

MATLAB Camera Calibrator相机标定

Introduction to RCNN, fast RCNN and fast RCNN

Base64编码详解及其变种(解决加号在URL变空格问题)
![[explain the difference between operation and maintenance and network engineering]](/img/2b/945f468588e729336e2e973e777623.jpg)
[explain the difference between operation and maintenance and network engineering]

ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing

【关于运维和网工的差别,一文说透】

Send custom events in QT

pymysql 向MySQL 插入数据无故报错

Markdown to realize text link jump
随机推荐
There was an error checking the latest version of pip
更改SSH端口号
ZUCC_ Principles of compiling language and compilation_ Big job
New technology practice, encapsulating the permission application library step by step with the activity results API
Tencent conference API - get rest API & webhook application docking information
获取屏幕宽高工具类
Use cpulimit to free up your CPU
RuntimeError: Missing dependencies:XXX
[micro services ~nacos] Nacos service providers and service consumers
利用sonar做代码检查
AUTO PWN
os. path. Pits encountered during the use of join()
小黑ai4code代码baseline啃食1
ZUCC_ Principles of compiling language and compilation_ Experiment 05 regular expression, finite automata, lexical analysis
Cloudbase database migration scheme
中国芯片独角兽公司
成为IEEE学生会员
OpenCV to realize the basic transformation of image
Send custom events in QT
IIS build wordpress5.7 manually