当前位置:网站首页>Windows10 configuration database
Windows10 configuration database
2022-06-12 07:50:00 【FishPotatoChen】
Catalog
brief introduction
In the installation Windows 10 Installation on MySQL, of CentOS Database configuration on , See the blog https://blog.csdn.net/FishPotatoChen/article/details/108645096
Environmental Science
System
windows 10
Database version
mysql-8.0.21-winx64
Download address Tsinghua mirror station MySQL
Very fast in China , You can also download it from the official website
The film begins
decompression
I unzipped the file path
D:\mysql-8.0.21-winx64
Configure environment variables
Enter the unzipped file path , There's one under the folder bin file , That's the path ( It depends on where you unpack it )D:\mysql-8.0.21-winx64\bin, Copy this path to the environment variable 
Click the red line 
Click the red line 
double-click Path
Click the red line , I've configured it here 
Put the copied path here , Then click OK to exit
To configure my.ini file
In the path D:\mysql-8.0.21-winx64 Create a txt File and rename it my.ini
The contents are as follows
[mysqld]
port = 3306
basedir = D:\mysql-8.0.21-winx64
# User data directory , Change according to your own situation
datadir = D:\mysql-8.0.21-winx64\data
# Character set settings
character-set-server = utf8
[WinMySQLAdmin]
# Start program path , Change to your own
Server = D:\mysql-8.0.21-winx64\bin\mysqld.exe
# user name
user=root
Note change to Own corresponding path .
install
With Administrator status Open the local terminal , Get into bin Under the table of contents .
C:\Windows\system32>d:
D:\>cd D:\mysql-8.0.21-winx64\bin
Run the following statement
D:\mysql-8.0.21-winx64\bin>mysqld --initialize --console
The results are as follows
2020-09-19T03:55:28.789900Z 0 [System] [MY-013169] [Server] D:\mysql-8.0.21-winx64\bin\mysqld.exe (mysqld 8.0.21) initializing of server in progress as process 16552
2020-09-19T03:55:28.790683Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2020-09-19T03:55:28.803727Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-09-19T03:55:29.181810Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-09-19T03:55:30.170195Z 6 [Note] [MY-010454] [Server] A temporary password is generated for [email protected]: YJl8j9Sfea:4
The last line is the initial password , Remember , When entering the database for the first time, use , Change the password at that time
Then run the following statement to install and start MySQL
D:\mysql-8.0.21-winx64\bin>mysqld -install
Service successfully installed.
D:\mysql-8.0.21-winx64\bin>net start mysql
MySQL The service is starting .
MySQL Service started successfully .
Show MySQL Service started successfully . Even if it's successful
The next time you start, just run after entering the administrator mode net start mysql That's all right. , If you stop, just net stop mysql Just ok!
PS: If you fail halfway , You must remove the entire service before you can reinstall .
function sc delete mysql || mysql -remove, It is effective to reopen the terminal after deletion , If after opening sc query mysql Discovery still exists (type and state Wait for no reason 0), however sc delete mysql || mysql -remove But there is no such service , You can restart the computer .
Start using MySQL
Make sure that after starting the service , stay bin Under the table of contents mysql -u root -p, Enter the initial password , Login successful . Change the initial password , Otherwise, we can't do mysql operation , and root Password must be strong . Run in the database
# Change it to lowercase and see if it makes the meaning clearer :alter user 'root'@'localhost' identified by 'xxxxx'
ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxx';
# If you want to use Navicat We need to change the encryption method
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxxxx';
# Refresh the permissions
FLUSH PRIVILEGES;
The password you changed is xxxxx, And this password is a strong password ( Case letters , Numbers , punctuation ). Then you can use the database .
If you want to use Python perhaps Java Linked database , There are special tutorials , I won't go over it here . You can also use the graphical interface to view the database later , Baidu can be directly , There are also many tutorials .
边栏推荐
- R语言使用RStudio将可视化结果保存为pdf文件(export--Save as PDF)
- R语言使用caTools包的sample.split函数将机器学习数据集划分为训练集和测试集
- 电脑连接上WiFi但是上不了网
- L'effet de l'oie sauvage sur l'économie numérique verte de Guilin
- Gd32f4 (5): gd32f450 clock is configured as 200m process analysis
- Voice assistant - Introduction and interaction process
- 2022 simulated test platform operation of hoisting machinery command test questions
- 20220524 backbone深度学习网络骨架
- Model deployment learning notes (I)
- Voice assistant -- Qu -- semantic role annotation and its application
猜你喜欢

What is a good recommendation system?

Topic 1 Single_Cell_analysis(3)

Voice assistant -- Qu -- query error correction and rewriting

vscode 1.68变化与关注点(整理导入语句/实验性新命令中心等)

Golang quickly generates model and queryset of database tables
![[RedisTemplate方法详解]](/img/ef/66d8e3fe998d9a788170016495cb10.png)
[RedisTemplate方法详解]

The latest hbuilderx editing uni app project runs in the night God simulator

2022 simulated test platform operation of hoisting machinery command test questions

Scoring prediction problem

Bi skills - beginning of the month
随机推荐
WEB页面性能优化面试题
Exposure compensation, white increase and black decrease theory
20220525 RCNN--->Faster RCNN
Latex usage problems and skills summary (under update)
xshell安装
R语言rnorm函数生成正太分布数据、使用epiDisplay包的summ函数计算向量数据的描述性统计汇总信息并可视化有序点图(名称、有效值个数、均值、中位数、标准差、最大值、最小值)
Voice assistant - Measurement Indicators
R语言使用epiDisplay包的summ函数计算dataframe中指定变量在不同分组变量下的描述性统计汇总信息并可视化有序点图、使用dot.col参数设置不同分组数据点的颜色
2D visualization of oil storage, transportation and production, configuration application enables intelligent development of industry
Summary of machine learning + pattern recognition learning (II) -- perceptron and neural network
Thyristor, it is a very important AC control device
Topic 1 Single_Cell_analysis(4)
Process terminated
Topic 1 Single_ Cell_ analysis(1)
VS2019 MFC IP Address Control 控件繼承CIPAddressCtrl類重繪
连接数据库却无法修改数据
移动端、安卓、IOS兼容性面试题
20220607. face recognition
2021.10.27-28 scientific research log
R语言dplyr包mutate_at函数和one_of函数将dataframe数据中指定数据列(通过向量指定)的数据类型转化为因子类型