当前位置:网站首页>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
边栏推荐
- 【yolov5.yaml解析】
- [untitled]
- [pytorch pre training model modification, addition and deletion of specific layers]
- 【主流Nivida显卡深度学习/强化学习/AI算力汇总】
- [configuration method of win11 multi-user simultaneous login remote desktop]
- MySQL splits strings for conditional queries
- Matlab imoverlay function (burn binary mask into two-dimensional image)
- Take you two minutes to quickly master the route and navigation of flutter
- splunk配置163邮箱告警
- 【云原生 | Kubernetes篇】Ingress案例实战(十三)
猜你喜欢
Take you two minutes to quickly master the route and navigation of flutter
【L1、L2、smooth L1三类损失函数】
Principle of persistence mechanism of redis
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Redis cluster (master-slave) brain crack and solution
Codeworks 5 questions per day (1700 average) - day 5
ABAP table lookup program
Why do you always fail in automated tests?
【PyTorch预训练模型修改、增删特定层】
1 plug-in to handle advertisements in web pages
随机推荐
谜语1
Automated test lifecycle
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
1 plug-in to handle advertisements in web pages
ACID事务理论
只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
多表操作-自关联查询
Halcon 模板匹配实战代码(一)
Want to ask, how to choose a securities firm? Is it safe to open an account online?
JS for循环 循环次数异常
Reading notes of growth hacker
【L1、L2、smooth L1三类损失函数】
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
Open3d mesh (surface) coloring
JS for loop number exception
Multi table operation - Auto Association query
Vscode shortcut key
信息服务器怎么恢复,服务器数据恢复怎么弄[通俗易懂]
Video networkstate property
[deploy pytoch project through onnx using tensorrt]