当前位置:网站首页>Installing mysql5.7 under Windows
Installing mysql5.7 under Windows
2022-06-28 08:10:00 【Record】
One 、 Configuration environment
- 1、 Unpack the installation package , In this article, extract to G:\mysql5.7.23 Under the table of contents
- 2、 This computer -> Right click -> attribute -> Advanced system setup -> environment variable , In system variable -> find Path-> edit , take mysql Add the installation path of ( Add ;G:\mysql5.7.23).
Two 、 To configure mysql
- 1、 stay mysql Installation directory , Create a new one my.ini The configuration file .
About my.ini The file configuration of is as follows :
[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=G:\mysql5.7.23
# Set up mysql Database data storage directory
datadir=G:\mysql5.7.23\data
# Maximum connections allowed
max_connections=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
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
3、 ... and 、 Initialize and start Mysql
1、 Start as Administrator cmd window
2、 Get into mysql Installation directory
3、 install mysql service
mysqld -install
* Note that if the execution is completed mysqld -install The installation directory was not generated data file , To be implemented mysqld --initialize-insecure --user=mysql
( If the build ignores this step )
If you execute mysqld --initialize-insecure --user=mysql Report errors
take my.ini Change the single slash after the path letter in the configuration file to double slash
basedir=G:\\mysql5.7.23
datadir=G:\\mysql5.7.23\data
- 4、 initialization mysql
mysqld –initialize
- 5、 start-up mysql
net start mysql
- 6、 initialization mysql password
mysql stay 5.7 Version above root By default, the user generates a temporary login password , The password is generated in the data directory .err In the file ; stay my.ini The data directory I wrote in the configuration file is :datadir= G:\mysql5.7.23\data
Then the initial password is found in this directory .
The part circled above is the login password
Four 、 Reset mysql password
Log in with the initialized login password mysql
After entering the client , You can change the password set password for [email protected] = password(' New password ');
( Don't forget the semicolon ~)
5、 ... and 、 Set up root Remote access rights
mysql> grant all privileges on *.* to 'root'@'%' identified by ' password ';
mysql> flush privileges;
have access to navicat for mysql Connect the test :
thus ,MySQL The installation is complete !
边栏推荐
- 2022第六季完美童模 佛山赛区 初赛圆满落幕
- Generation and verification of JWT token
- SQL Master slave Replication Build
- Is it reliable for flush to register and open an account? Is it safe?
- Disposition Flex
- ROS notes (08) - definition and use of service data
- sql主从复制搭建
- NLP sequence can completely simulate human brain intelligence
- ZYNQ_ IIC read / write m24m01 record board status
- Children's unit of 2022 Paris fashion week ended successfully at Wuhan station on June 19
猜你喜欢
At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
Idea package together, using compact middle packages to solve &
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
[JS] - [DFS, BFS application] - learning notes
匿名页的反向映射
【学习笔记】拟阵
Activity隐式跳转
探讨gis三维系统在矿山行业中的应用
ROS notes (09) - query and setting of parameters
asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...
随机推荐
Eslint syntax monitoring off
ROS notes (09) - query and setting of parameters
【js】-【节流、防抖函数】
Configuring multiple instances of MySQL under Linux
SOC clock configuration
NLP sequence can completely simulate human brain intelligence
Redis cerebral fissure
Prometheus monitoring (I)
ROS 笔记(08)— 服务数据的定义与使用
Study notes 22/1/10
Soft exam -- software designer -- afternoon question data flow diagram DFD
Redis cluster deployment and application scenarios
HJ prime factor
Airflow2.1.1 ultra detailed installation document
Airflow2 configuration windows azure SSO details based on oauth2 protocol
Airflow2.1.1 summary of the pits stepped on in actual combat!!
券商注册开户靠谱吗?安全吗?
asp. Net upload image path and image name
Devops Basics: Jenkins deployment and use (I)
nlp序列完全可以模拟人脑智能