当前位置:网站首页>MySQL installation
MySQL installation
2022-06-23 14:09:00 【slom_ fxt】
One 、 Download the unzip file ( You can also download the installed version on the official website )
1. Go to the official website to download or go to https://www.mysql.com/downloads/ download
Click on the following
2. Locate the extracted file
3. Download the compressed file ( Download as needed )
4. Unzip in the directory you want to install
Two 、 environment variable : To configure MySQL Under the table of contents bin route
3、 ... and 、 Configure initialized profile my.ini
[mysqld] # Set up 3306 port port=3306 # Set up mysql Installation directory basedir=D:\\mysql-8.0.28 # Remember to use double slashes here \\, I will make a mistake here , But look Other people's tutorial , Some are single slashes . Try it yourself # Set up mysql Database data storage directory datadir=D:\\mysql-8.0.28\\data # Ditto here # Maximum connections allowed max_connections=200 # Number of connection failures allowed , This is to prevent someone from trying to attack the database system from the host max_connect_errors=10 # The character set used by the server defaults to UTF8 character-set-server=utf8 # 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 default_authentication_plugin=mysql_native_password [mysql] # Set up mysql Client default character set default-character-set=utf8 [client] # Set up mysql The default port and character set used by the client when connecting to the server port=3306 default-character-set=utf8
4. Load profile
1. Run as administrator cmd, Direct input mysqld --initialize --console perform , After execution , There is a jargon Atemporary password is generated for [email protected]: gVQabdEtk4+r
@localhost: After that is root User's initial password , This password will be used later
2. stay cmd In the implementation of mysqld --install MySQL
3. Start the service net start MySQL
4. Login service MySQL -uroot -pgVQabdEtk4+r
5. Change Password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
边栏推荐
- 中断和轮询
- ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
- In depth analysis of mobilenet and its variants
- 2022 soft science university professional ranking released! Xi'an electric AI ranked higher than Qingbei, and Nantah ranked first in the country!
- kubernetes日志监控系统架构详解
- 微信小程序之在wx:for中绑定事件
- OpenVINOTM 2022.1中AUTO插件和自动批处理的最佳实践
- Wechat applet pop up the optional menu from the bottom
- Understand ADT and OOP
- Go write file permission WriteFile (filename, data, 0644)?
猜你喜欢

PHP receiving and sending data

Instructions for laravel8 Beanstalk

CRMEB 二开短信功能教程
![[Yunzhou said live room] - digital security special session will be officially launched tomorrow afternoon](/img/56/a6a9fbba0a9fc212883b469bb857c5.png)
[Yunzhou said live room] - digital security special session will be officially launched tomorrow afternoon

腾讯云TDSQL-C重磅升级,性能全面领跑云原生数据库市场

quartus調用&設計D觸發器——仿真&時序波驗證

AI reference kit

连续2年夺冠!Zabbix在2022年多款监控软件排名第一

What is the principle of live CDN in the process of building the source code of live streaming apps with goods?

父母-子女身高数据集的线性回归分析
随机推荐
Error when Oracle enters sqlplus
OpenVINOTM 2022.1中AUTO插件和自动批处理的最佳实践
Quartus call & design D trigger Simulation & timing wave verification
【深入理解TcaplusDB技术】 Tmonitor模块架构
如何打开/关闭chrome控制台调试时的时间戳?
Go write file permission WriteFile (filename, data, 0644)?
渗透测试-提权专题
火绒安全与英特尔vPro平台合作 共筑软硬件协同安全新格局
连续2年夺冠!Zabbix在2022年多款监控软件排名第一
栈和队列的基本使用
腾讯云TDSQL-C重磅升级,性能全面领跑云原生数据库市场
Digraph D and e
深入剖析MobileNet和它的变种
Xmake v2.6.8 发布,编译缓存改进
Detailed explanation of serial port, com, UART, TTL, RS232 (485) differences
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
4-way telephone +1-way Gigabit Ethernet 4-way PCM telephone optical transceiver
[deeply understand tcapulusdb technology] transaction execution of document acceptance
Oracle进入sqlplus 报错
Linear regression analysis of parent-child height data set




