当前位置:网站首页>MySQL installation configuration 2021 in Windows Environment
MySQL installation configuration 2021 in Windows Environment
2022-07-07 14:53:00 【weixin_ forty-five million seven hundred and fifty thousand fou】
1、 First of all to enter MySQL :: Download MySQL Community Server Official website , Download installation package Extract to a specified directory
Here the decompression is assigned to D disc , And record the installation path
2、 Set up my.ini file
Copy the following content to the created my In file
basedir= Their own mysql Catalog
datadir=mysql Of data Stored directory
[mysqld]
# Set up 3306 port
port=3306
# Set up mysql Installation directory
basedir=D:\mysql\mysql-8.0.25-winx64
# Set up mysql Database data storage directory (data If there is no folder, it will be created automatically )
datadir=D:\mysql\mysql-8.0.25-winx64/data
# 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
What needs to be changed , Change the directory to your own directory, that is :
# Set up mysql Installation directory ---------- Is your file path -------------
basedir=D:\mysql-8.0.26-winx64
# Set up mysql Database data storage directory --------- Is your file path data The folder is created by itself
datadir=D:\mysql-8.0.26-winx64\data
eg:
3、 Run under the command of the administrator cmd, Execute the installation instructions
cd D:\mysql-8.0.26-winx64\bin Enter the directory of the operation
mysqld --initialize --console
mysqld install mysql
( The selected part in the figure is the initial login password , Write down the )
net start mysql start-up
mysql -uroot -p Connect mysql, Enter the password just now
Login success screen
4、 Change Password
After logging in here, we can change the password to our own password by executing the following instructions
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ' New password ';
5、 Configure environment variables
1) Add system variables MYSQL_HOME The variable value is the initial mysql The installation path ( To /bin)
2) stay path Add %MYSQL_HOME% %MYSQL_HOME%\bin
6、mysql Basic operation
Display the version installation date
Display library
Create a selection database
Create database tables , Display table
Display table structure
Look up the information in the table and exit mysql
边栏推荐
- Data Lake (IX): Iceberg features and data types
- electron remote 报错
- Classification of regression tests
- 一文读懂数仓中的pg_stat
- 8大模块、40个思维模型,打破思维桎梏,满足你工作不同阶段、场景的思维需求,赶紧收藏慢慢学
- Half an hour of hands-on practice of "live broadcast Lianmai construction", college students' resume of technical posts plus points get!
- WebRTC 音频抗弱网技术(上)
- 拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...
- 用于增强压缩视频质量的可变形卷积密集网络
- 6. Electron borderless window and transparent window lock mode setting window icon
猜你喜欢
Introduction and use of Kitti dataset
asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
数据湖(九):Iceberg特点详述和数据类型
Simple use of websocket
防火墙基础之服务器区的防护策略
How to enable radius two factor / two factor (2fa) identity authentication for Anheng fortress machine
Five pain points for big companies to open source
PyTorch模型训练实战技巧,突破速度瓶颈
MicTR01 Tester 振弦采集模塊開發套件使用說明
随机推荐
electron remote 报错
数据库如何进行动态自定义排序?
Differences between cookies and sessions
JS image to Base64
Ascend 910 realizes tensorflow1.15 to realize the Minist handwritten digit recognition of lenet network
EMQX 5.0 发布:单集群支持 1 亿 MQTT 连接的开源物联网消息服务器
2022年13个UX/UI/UE最佳创意灵感网站
[Yugong series] go teaching course 005 variables in July 2022
Read PG in data warehouse in one article_ stat
Jetson AGX Orin CANFD 使用
How to enable radius two factor / two factor (2fa) identity authentication for Anheng fortress machine
Promoted to P8 successfully in the first half of the year, and bought a villa!
C# 6.0 语言规范获批
属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
Notes de l'imprimante substance: paramètres pour les affichages Multi - écrans et multi - Résolutions
全球首款 RISC-V 笔记本电脑开启预售,专为元宇宙而生!
什么是云原生?这回终于能搞明白了!
一款你不容错过的Laravel后台管理扩展包 —— Voyager
因员工将密码设为“123456”,AMD 被盗 450Gb 数据?
安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证