当前位置:网站首页>MySQL installation and configuration (command line version)
MySQL installation and configuration (command line version)
2022-07-03 09:10:00 【zhd……】
MySQL Installation and configuration ( Command line version )
1. Download from the official website

2. decompression
3. Configure environment variables


stay path Add below mysql route :
F:\mysql-8.0.27-winx64\bin
4. To write my.ini
[mysqld]
# Set up 3306 port
port=3306
# Set up mysql Installation directory
basedir=F:\mysql-8.0.27-winx64
# Set up mysql Database data storage directory
datadir=F:\mysql-8.0.27-winx64\Data
# Maximum connections allowed
max_connections=200
# Number of connection failures allowed .
max_connect_errors=10
# The character set used by the server defaults to utf8mb4
character-set-server=utf8mb4
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
# By default “mysql_native_password” Plug in authentication
#mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# Set up mysql Client default character set
default-character-set=utf8mb4
[client]
# Set up mysql The default port when the client connects to the server
port=3306
default-character-set=utf8mb4
5. Generate data file
Installed MySQL Of bin Next Run the command prompt in administrator mode
mysqld --initialize --console
Found after execution A temporary password is generated for [email protected]: This sentence ,localhost Next is your initialization password
6. install MySQL service
mysqld -install
7. Start the service
net start mysql
8. Sign in
mysql -u root -p
Prompt for password , Use initialization password
9. Change Password
ALTER USER 'username'@'localhost' identified with mysql_native_password by '123456';
边栏推荐
- Using DLV to analyze the high CPU consumption of golang process
- AcWing 787. 归并排序(模板)
- How to delete CSDN after sending a wrong blog? How to operate quickly
- Find the combination number acwing 885 Find the combination number I
- LeetCode 535. TinyURL 的加密与解密
- 使用dlv分析golang进程cpu占用高问题
- Basic knowledge of network security
- Methods of checking ports according to processes and checking processes according to ports
- 数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
- Wonderful review | i/o extended 2022 activity dry goods sharing
猜你喜欢

On the setting of global variable position in C language

Digital statistics DP acwing 338 Counting problem

LeetCode 324. 摆动排序 II

State compression DP acwing 91 Shortest Hamilton path

Low code momentum, this information management system development artifact, you deserve it!

Find the combination number acwing 885 Find the combination number I

【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation

Save the drama shortage, programmers' favorite high-score American drama TOP10

状态压缩DP AcWing 91. 最短Hamilton路径

浅谈企业信息化建设
随机推荐
Summary of methods for counting the number of file lines in shell scripts
AcWing 786. 第k个数
数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
Vscode connect to remote server
Sword finger offer II 029 Sorted circular linked list
AcWing 786. Number k
传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!
Complex character + number pyramid
State compression DP acwing 91 Shortest Hamilton path
TP5 multi condition sorting
一个优秀速开发框架是什么样的?
LeetCode 324. Swing sort II
Education informatization has stepped into 2.0. How can jnpf help teachers reduce their burden and improve efficiency?
状态压缩DP AcWing 91. 最短Hamilton路径
干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了
浅谈企业信息化建设
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
即时通讯IM,是时代进步的逆流?看看JNPF怎么说
Methods of checking ports according to processes and checking processes according to ports
Internet Protocol learning record