当前位置:网站首页>CentOS 8.2 MySQL installation (xshell6)
CentOS 8.2 MySQL installation (xshell6)
2022-07-25 08:07:00 【baoyz123】
One . Go to the official website to download your corresponding mysql edition 


Choose your own version blind 

Two . To xshell Download in And extract the
1. Switch to the disk you want to download , command :wget Download path
Right click here to paste !


2. decompression
command :tar -xvJf
tar -xvJf mysql-8.0.27-linux-glibc2.12-x86_64.tar.xz
3. Modify the root directory name after decompression
command :mv Name before modification / Revised name

3、 ... and . Create a data folder data
data The folder is mysql Used to store database files , All the table data in the database are placed in data Catalog .
command :mkdir

Four . initialization
To bin Initialization in directory
initialization :./mysqld --initialize --user=mysql --datadir=/opt/mysql-8.0.27/data --basedir=/opt/mysql-8.0.27

After the order is executed , Will generate a temporary mysql database root User's password , Please copy it first and remember , The next first login mysql Need to use

Start the service first ---> Sign in ( Need a password )---> Change password --->exit sign out ---> Close the service ( Need a password )
5、 ... and .
1. Start the service
command :./mysqld_safe &
start-up mysq You need to enter the password generated by the first initialization
2. Client login

3. Change the password in the client login :
command :alter user 'root'@'localhost' identified by '123456';
After a change exit sign out

6、 ... and . close mysql service

边栏推荐
- P1086 [NOIP2004 普及组第二题] 花生采摘
- app耗电量测试
- Dijkstra sequence (summer vacation daily question 5)
- Today in history: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
- efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
- People who lose weight should cry: it's no good not eating food, because your brain will be inflamed
- Changes were made to tables that cannot be recreated or the prevent saving changes that require the table to be recreated option was enabled
- If Debian infringes the rust trademark, will it be exempted by compromising and renaming?
- Weblux default IO threads
- P1048 [noip2005 popularization group t3] drug collection
猜你喜欢

Vscode remote connection server, switch to go version

Programmers can't play at the age of 35. Is it a fact or a misunderstanding?

MVC mode three-tier architecture

VS2019 C# MFC安装

A powerful port scanning tool (nmap)

How does MTK change the boot logo?

oracle 触发器创建

CAS operation

Redis core principles

Cerebral cortex: the relationship between lifestyle and brain function in the elderly and its relationship with cognitive decline
随机推荐
第3章业务功能开发(修改线索,数据回显并修改数据)
efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
Didi eta (estimate the travel time)
C# 43. 获取UDP可用端口
ArcGIS Pro scripting tool (10) -- generate.Stylx style symbols from layers
[5g NR] 3GPP common protocol sorting
MathWorks has been in China for 15 years. What are the secrets of continuous innovation?
P1086 [noip2004 popularization group question 2] peanut picking
整数a按位取反(~)后的值为-(a+1)
Today in history: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
CM4 development cross compilation tool chain production
[recommended reading] a collection of super useful vulnerability scanning tools!
由两个栈组成的队列
JS cool rolling picture deformation animation JS special effects
Using one stack to sort another stack
[audio and video] picture YUV data format
How should enterprise users choose aiops or APM?
In depth analysis of yolov7 network architecture
Redis client tool redis insight recommendation
The 17th revitalization cup computer programmer (cloud computing platform operation and development) finals