当前位置:网站首页>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';
边栏推荐
- Use of sort command in shell
- Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
- 数位统计DP AcWing 338. 计数问题
- Internet Protocol learning record
- Severity code description the project file line prohibits the display of status error c2440 "initialization": unable to convert from "const char [31]" to "char *"
- 【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
- TP5 multi condition sorting
- 推荐一个 yyds 的低代码开源项目
- Binary tree sorting (C language, int type)
- Debug debugging - Visual Studio 2022
猜你喜欢
Digital statistics DP acwing 338 Counting problem
The "booster" of traditional office mode, Building OA office system, was so simple!
Slice and index of array with data type
LeetCode 241. 为运算表达式设计优先级
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
剑指 Offer II 029. 排序的循环链表
树形DP AcWing 285. 没有上司的舞会
AcWing 787. Merge sort (template)
浅谈企业信息化建设
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
随机推荐
Save the drama shortage, programmers' favorite high-score American drama TOP10
What is the difference between sudo apt install and sudo apt -get install?
Use of sort command in shell
On a un nom en commun, maître XX.
AcWing 786. 第k个数
Get the link behind? Parameter value after question mark
拯救剧荒,程序员最爱看的高分美剧TOP10
Recommend a low code open source project of yyds
数位统计DP AcWing 338. 计数问题
Common DOS commands
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
LeetCode 324. Swing sort II
浅谈企业信息化建设
樹形DP AcWing 285. 沒有上司的舞會
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
Sword finger offer II 029 Sorted circular linked list
LeetCode 508. 出现次数最多的子树元素和
The method of replacing the newline character '\n' of a file with a space in the shell
AcWing 788. Number of pairs in reverse order