当前位置:网站首页>MySQL installation
MySQL installation
2022-07-19 15:03:00 【xjyq】
One 、 download
1、 Address :https://dev.mysql.com/downloads/mysql/
2、 The latest is 8.0 edition , I chose the last latest one mysql-5.7.24-winx64.zip
Two 、 install
1、MySQL There are two kinds of installation files .msi and .zip ,.msi Need to install .
2、zip The format is to decompress by yourself , After decompression, actually MySQL You can use it , But you need to configure environment variables zip The format is to decompress by yourself .
3、 My computer -> attribute -> senior -> environment variable
choice Path, Add after : Yours mysql bin Path to folder :
F:\mysql\mysql-5.7.24-winx64\mysql-5.7.24-winx64\bin;
4、 After configuring environment variables , stay F:\mysql\mysql-5.7.24-winx64\mysql-5.7.24-winx64 Add a new configuration file under the directory mysql.ini , At the same time bin Create a data Folder ( Used to store database data )
5、mysql.ini The contents of the document are as follows :
[mysql]
# Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port
port = 3306
# Set up mysql Installation directory
basedir=F:\mysql\mysql-5.7.24-winx64\mysql-5.7.24-winx64
# Set up mysql Database data storage directory
datadir=F:\mysql\mysql-5.7.24-winx64\mysql-5.7.24-winx64\data
# Maximum connections allowed
max_connections=200
# The character set used by the server defaults to 8 Bit coded latin1 Character set
character-set-server=utf8
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
6、 open cmd, You don't need to go to the installation directory (∵ Environment variables have been configured before ), Enter the following command , enter , No response
mysqld --initialize-insecure --user=mysql
7、 Enter the following command , enter , It will prompt that the installation is successful
mysqld install
8、 Start the service , Enter the following command , enter , After successful startup, it is shown in the figure below
net start mysql
9、 After the service starts successfully , Enter the command when you need to log in ( No password for the first login , Press enter directly to pass )
mysql -u root -p
10、 Change Password ( Must be started first mysql), Execute the following command and enter ,enter password Come back , The password is usually set to root, Convenient memory
mysqladmin -u root -p password
11、 sign out exit That's it , Remember to close directly cmd The window doesn't exit , To input exit I'll quit
————————————————
Reference :
https://blog.csdn.net/weixin_42869365/article/details/83472466
边栏推荐
- 天勤第九章课后习题代码
- An unforgettable day in 2022 summer camp
- csrf防护机制
- 5-21 拦截器 Interceptor
- The first step of agile: turn "iteration" into "sprint" and start!
- 1. Basic concepts of DBMS
- Notes on random nodes of force buckle 382 linked list
- Code Runner for VS Code,下载量突破 4000 万!支持超过50种语言
- TDesign compositionapi refactoring path
- How to quickly realize Zadig single sign on on authoring?
猜你喜欢
[email protected] Moveactivityidto task fallback special case analysis"/>Learning records [email protected] Moveactivityidto task fallback special case analysis

Principle and simple implementation of custom MVC

Oracle - 锁

揭开服务网格~Istio Service Mesh神秘的面纱

Which company is better in data filling and report presentation? Yixin ABI gives you the answer

Notes on random nodes of force buckle 382 linked list

End repeated development and personalize the login system in twoorthree times

Database SQL Server

Zabbix实现对Redis的监控

Labview32-bit and 64 bit compatibility
随机推荐
Which company is better in data filling and report presentation? Yixin ABI gives you the answer
实习是步入社会的一道坎
Single channel 6Gsps 12 bit AD acquisition and single channel 6Gsps 16 bit Da (ad9176) output sub card based on vita57.1 standard
Is it safe to open a fund account online now?
6U VPX high speed signal processing board based on ku115+mpsoc (xcku115 + zu9eg +dsp)
Display module in pyGame
Abstract classes and derived classes
分布式事务的性能设计
Scheduled tasks, VIM directly creates and modifies users
Learning records [email protected] Moveactivityidto task fallback special case analysis
csrf防护机制
2. MySQL introduction
Classification of blocks
Leetcode 1296. Divide the array into a set of consecutive numbers (solved)
Damn it, why is there less space on the USB flash drive? It's the EFI partition. Delete it
背包问题 (Knapsack problem)
揭开服务网格~Istio Service Mesh神秘的面纱
MySQL 安装
Is it safe to buy funds in a securities account? I want to make a fixed investment in the fund
How to quickly realize Zadig single sign on on authoring?