当前位置:网站首页>Mysql-5.7 installation
Mysql-5.7 installation
2022-07-25 07:47:00 【Hello Bean Bun】
1. download
MySQL Download address dev.mysql.com/downloads/m…, Because the latest version is 8.xx Version of the , You can find it from this position
2. New configuration file
Generally, the compressed package does not contain this configuration file, which needs to be created
3. Writing configuration files
**
# Configuration is for all connections mysql server Client tools default character set
default-character-set = utf8mb4
[mysql]
# Configuration is only for mysql Client tools default character set
default-character-set=utf8mb4
[mysqld]
# Set up 3306 port , You can specify the port number according to your needs
port = 3306
# Set up mysql Installation directory
basedir=C:\Program Files\mysql\mysql-5.7.28-winx64
# Set up mysql Database data storage directory ( You can create directory locations according to your actual ideas , Configure path pairs )
datadir=C:\Program Files\mysql\mysql-5.7.28-winx64\data
# The character set used by the server uses utf8mb4 Because I usually store emoji expression
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
# The default storage engine that will be used when creating a new table 、
default-storage-engine=INNODB
Copy code 4. Complete the database installation
Initialize the database after the configuration file is configured , Enter the installation mysql5.7 Version of bin Catalog , Most executable programs are in this directory
Pay attention to running and executing commands with administrator privileges
mysqld --initialize-insecure --user=mysql After executing the above command ,MySQL I'll build my own data Folder , And build the default database , Login user name is root, The password is empty.
I usually set it to start automatically , I am using windows The system can use the following command to register mysqld install mysql57 The following prompt indicates that the registration is successful mysql57 Indicates the name of the service , You can choose a name at will without conflict
Use the following command to start mysql net start mysql57 mysql57 Name of service
Verify that the installation was successful mysql -uroot -p Login user name is root, The password is empty. , The following screen shows that the installation is successful \
It can be modified by the following command mysql root User's password Log in first MySQL.
Format :mysql> set password for user name @localhost = password(‘ New password ');
Example : set password for [email protected] = password('123');
边栏推荐
- 由两个栈组成的队列
- Kubernetes monitoring component metrics server deployment
- C# 43. 获取UDP可用端口
- Offline base tile, which can be used for cesium loading
- How to do a good job in safety development?
- 深度学习之快速实现数据集增强的方法
- Problems in deep learning training and testing: error: the following arguments are required: --dataroot, solution: the configuration method of training files and test files
- oracle 触发器创建
- Calculation formula of cross entropy
- 大佬秋招面经
猜你喜欢

Line generation (matrix ')

oracle 触发器创建

Use cyclegan to train self-made data sets, popular tutorials, and get started quickly

Gan series of confrontation generation network -- Gan principle and small case of handwritten digit generation

使用CycleGAN训练自己制作的数据集,通俗教程,快速上手
![[wechat applet] global style, local style, global configuration](/img/8e/c6241ab0f28e3f468dbfa923b91d20.png)
[wechat applet] global style, local style, global configuration
![[unity introduction program] basic concepts - 2D collider collider 2D](/img/cf/a546238a5eaf4707006ecf1b7f19c6.png)
[unity introduction program] basic concepts - 2D collider collider 2D

Network file storage system (III) practice of fastdfs distributed file system

A review of nature: gender differences in anxiety and depression - circuits and mechanisms

钉钉最新版,怎么清除登录手机号历史记录数据
随机推荐
P1049 [NOIP2001 普及组 T4] 装箱问题
What has become a difficult problem for most people to change careers, so why do many people study software testing?
ACNet:用于图像超分的非对称卷积(附实现code)
Oracle19 adopts automatic memory management. The AWR report shows that the settings of SGA and PGA are too small?
[dynamic programming] - Knapsack model
P1086 [NOIP2004 普及组第二题] 花生采摘
Tips - prevent system problems and file loss
P1046 [NOIP2005 普及组 T1] 陶陶摘苹果
Hikaricp connection pool does not operate for a period of time, and the data is automatically disconnected
cesium简介
uiautomator2 常用命令
整数a按位取反(~)后的值为-(a+1)
P1047 [NOIP2005 普及组 T2] 校门外的树
2-6. Automatic acquisition
全新8.6版本SEO快排系统(可源码级搭建)
曼哈顿距离简介
Problems easily ignored by POM
How to do a good job in safety development?
Competition path design of beacon group
[ES6] function parameters, symbol data types, iterators and generators