当前位置:网站首页>MySQL installation, Windows version
MySQL installation, Windows version
2022-07-05 12:12:00 【ziyi813】
MySql install
Download address :
https://downloads.mysql.com/archives/community/
Unzip to the installation directory , Configure environment variables
MySql catalogue
bin Catalog
Some executable files , Such as mysql.exe, mysqld.exe, mysqlshow.exe
docs Catalog
mysql Document resource directory
Data Catalog
The file directory of the database , Store database and log files
After logging in, you can use SHOW GLOBAL VARIABLES LIKE “%Datadir%”; see Data Directory location .
include Catalog
Store some header files , Such as mysql.h , mysql_ername.h
lib Catalog
Core library files
share Catalog
For storing character sets , Language and other information
my.ini file
my.ini yes MySql The default configuration file , In general , Just modify my.ini The content in the configuration file can be used to MySql To configure .
MySql Initialization information of
- 1、 Initialize temporary password
mysqld --initialize -user=mysql --console
2、 install mysql service
mysqld --install
3、 start-up mysql service
net start mysql
4、 Sign in mysql, Need a password
mysql -uroot -p
5、 modify root User password
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’
6、 modify root User permissions
create user ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘123456’
MySql The configuration file my.ini
[mysqld]
# Set port
port = 3306
# Character set
character-set-server = utf8
# The default storage engine that will be used when creating a new table
default-storage-engine = INNODB
[mysql]
# Set up the client Default character set
default-character-set = utf8
[client]
# Set up msql The default port when the client connects to the server
port=3306
default-character-set = utf8
边栏推荐
- [configuration method of win11 multi-user simultaneous login remote desktop]
- vscode快捷键
- Principle of redis cluster mode
- Reinforcement learning - learning notes 3 | strategic learning
- 强化学习-学习笔记3 | 策略学习
- Is investment and finance suitable for girls? What financial products can girls buy?
- 《增长黑客》阅读笔记
- Redis集群(主从)脑裂及解决方案
- 【load dataset】
- redis主从中的Master自动选举之Sentinel哨兵机制
猜你喜欢
【TFLite, ONNX, CoreML, TensorRT Export】
yolov5目标检测神经网络——损失函数计算原理
abap查表程序
Mongodb replica set
redis的持久化机制原理
网络五连鞭
16 channel water lamp experiment based on Proteus (assembly language)
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
Wireless WiFi learning 8-channel transmitting remote control module
随机推荐
谜语1
Acid transaction theory
[loss functions of L1, L2 and smooth L1]
Uniapp + unicloud + Unipay realize wechat applet payment function
leetcode:1200. Minimum absolute difference
Hash tag usage in redis cluster
语义分割实验:Unet网络/MSRC2数据集
Redirection of redis cluster
Principle of redis cluster mode
Multi table operation - Auto Association query
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
1 plug-in to handle advertisements in web pages
Select drop-down box realizes three-level linkage of provinces and cities in China
Matlab boundarymask function (find the boundary of the divided area)
ABAP table lookup program
What is the difference between canvas and SVG?
【TFLite, ONNX, CoreML, TensorRT Export】
Take you two minutes to quickly master the route and navigation of flutter
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
Mongodb replica set