当前位置:网站首页>Build MySQL database in Windows server2012 R2
Build MySQL database in Windows server2012 R2
2022-07-21 07:36:00 【51CTO】
I use server The environment is 3A The Internet Rented servers , Cheapness , High bandwidth
1. First go MySQL Download the installation package on the official website
2. Other downloads require login , Choose direct installation below
3. Then extract it into a folder ( Unzip this article C:\mysql-8.0.29-winx64), And configure the initialized mi.ini file ( establish my.ini File and paste the following contents , Remember to create it under the decompression path first data Folder oh ), After the file is created, put it in the decompression path :C:\mysql-8.0.29-winx64 Next
The contents of the document :
[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=C:\mysql-8.0.29-winx64
# Set up mysql Database data storage directory
datadir=C:\mysql-8.0.29-winx64\data
# Maximum connections allowed
max_cnotallow=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
4. install MySQL, Administrator rights to use cmd Command enters the command window , And cd To the installation path bin Under the table of contents ,
mysql—install( install ) If it is successful, it is shown in the figure below :
mysqld --initialize ( initialization )
net start mysql( function )
5. Change Password
stay data Inside the directory , find “.err” Final document , Open in Notepad , find “[email protected]”, Followed by the password
Log in successfully ,
modify MySQL Of root User password format :mysqladmin -u user name -p Old password ; password New password
边栏推荐
- [MCU simulation project] nixie tube dynamic display
- 绿色低碳天翼云,数字经济新引擎!
- 【NDK】EGL/egl.h: No such file or directory
- 外设篇:SD卡等外存设备
- 华为云GaussDB(for Redis)揭秘第23期:用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- 利用wget下载文件和网页
- 基于生命周期理论的农业科学数据中心化管理模式
- Four redis cluster schemes you must know and their advantages and disadvantages
- mongodb安全集群搭建
- PG operation and maintenance -- common management commands
猜你喜欢
随机推荐
科技计划项目数据管理过程模型
Rug pull
乐高(LEGO)在线购物店面剖析
利用wget下载文件和网页
最右×微帧,高质量的HEIF图片编码压缩技术
MapStruct - Consider defining a bean of type in your configuration.
Seata 多语言体系建设
Lecture 30 linear algebra Lecture 6 quadratic form
R语言ggplot2可视化:可视化分面散点图的标签数据为词云、使用ggrepel包的geom_text_repel函数避免词云标签互相重叠
多线程与高并发(二)—— Synchronized 加锁解锁流程
RKE vs. RKE2:对比两种 Kubernetes 发行版
1260. 二维网格迁移 : 简单构造模拟题
在windows server2012 r2中搭建mysql数据库
【NDK】EGL/egl.h: No such file or directory
Peripherals: LCD display
技术解析|Doris Connector 结合 Flink CDC 实现 MySQL 分库分表 Exactly Once精准接入
Form Data与Request Payload,你真的了解吗?
我国农业科学数据共享协议
MapStruct - Consider defining a bean of type in your configuration.
血压血氧健康监测,一个手环就搞定,dido Y1S体验