当前位置:网站首页>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

边栏推荐
- Supplementary notes on Relevant Issues of complete model group
- Didi eta (estimate the travel time)
- 第3章业务功能开发(查询线索)
- redis客户端工具redis-insight推荐
- eval与assert一句话木马分析
- Pricing is arbitrary, products are difficult to distinguish between true and false, and platforms are running away. Will the Tibetan market continue to be popular?
- Recommend 7 open source projects of yyds this week
- 对无法重新创建的表进行了更改或者启用了“阻止保存要求重新创建表的更改”选项
- 7.24模拟赛总结
- Technical Analysis | Doris connector combined with Flink CDC to achieve accurate access to MySQL database and table exactly once
猜你喜欢

Didi - dispatching

Didi eta (estimate the travel time)
Technical Analysis | Doris connector combined with Flink CDC to achieve accurate access to MySQL database and table exactly once

"Unable to recognize" yarn "item as cmdlet, function, script file

Vs2019 C MFC installation

Competition path design of beacon group

Introduction and installation of mongodb

Oracle trigger creation

475-82(230、43、78、79、213、198、1143)
![[audio and video] picture YUV data format](/img/f6/922ff1f8bbbeff83a095a3ad5e797f.png)
[audio and video] picture YUV data format
随机推荐
Sqlserver has opened the CDC table. Why can we only pull the full amount of data and can't recognize the incremental data
app耗电量测试
batchnorm 和layernorm的区别
Raspberry pie 3b ffmpeg RTMP streaming
Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
Brush the title "sword finger offer" day02
yolov7 网络架构深度解析
App power consumption test
C 43. Get UDP available ports
Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system
滴滴 - eta(Estimate the Travel Time)
My creation anniversary
滴滴 - dispatching
Advanced C language (XIII) - Example Analysis of dynamic memory management
P1047 [noip2005 popularization group t2] tree outside the school gate
7.24 simulation summary
How to obtain the intersection / subtraction / Union of two sets by MySQL
Competition path design of beacon group
The two Nobel Prize winners became the chief scientist of the sky high price Baijiu of "taishanglaojun holding a dream"
Using one stack to sort another stack