当前位置:网站首页>MySQL installation
MySQL installation
2022-07-28 17:48:00 【A code farmer with no feelings】
MySQL The installation of is different from general software , You need to configure some related environments . And the installation is divided into .msi Installation and .zip install . Here are .msi install .
1. First , You want to download a .msi file . Here is the download address Click to enter the download interface .
Download the second .
2. When the download is complete , Double click the file . After the environment is detected, the installation interface will pop up automatically .
3. Picture description here
4 Choose the installation type ( Generally choose the first , Default installation . You can also choose the full version , After all, this software is free .)
From top to next is :
Default development version
Server only
Client only
Full version
Customize
4. Just follow the default all the time . Click on next, Some Click execute.





There's a little bit of caution here , You can put the back 57 Delete , Otherwise, you have to hit this when you hit the indicator .




Here you need to enter your password , And then click check.
5. After installation, it should look like this . Some may not data and my.ini Folder , Don't worry , It will be solved later .
bin Saved in directory MySQL Common command tools and management tools 、data Directory is MySQL The default place to save data files and log files docs Under the catalogue is MySQL Help document for 、include Contents and lib Directory is MySQL The header file and the library file that it depends on 、share Save directory files and log files in the directory .
6. Create a new text document , Name it my.txt. Enter the code in it , Change the path to your own .
[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:\Program Files\MySQL\MySQL Server 8.0
; Set up mysql Database data storage directory
datadir=C:\Program Files\MySQL\MySQL Server 8.0\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
After completion, change the documented suffix to .ini
7. knock cmd, Run as administrator . Enter your disk location .
8. Input mysqld --initialize perhaps mysqld –initialize-insecure –user=mysql, Will find ,data Folder generated .
9. Then the input net.start.mysql . The following errors may occur .
When the input mysqld –initialize-insecure –user=mysql, Then start the server once .
10. Input mysql -u root -p, Then enter the above password and you will succeed .
mysql Three ways to quit :
mysql > exit;
mysql > quit;
mysql > \q;
stop it MySQL The code for the service :net stop mysql.
Summary of the reasons why the server cannot be started :
1. The lack of data file , Enter mysqld --initialize perhaps mysqld –initialize-insecure –user=mysql Can solve .( Of course , You have to put the previous data Delete .)
2. No environment variables configured , You need to mysql Of bin Add the path to your environment variable . This article does not introduce , Please Baidu , Relatively simple .
3. Not running as an administrator cmd.
4. During installation , The name in the red box defaults to MySQL57( Corresponding to version 5.7), At this time, I changed it to “MySQL”.
The name meaning of the red box in the above figure is right MySQL The program is in Windows Name the system service window . let me put it another way , The name here is the same as that of the service window . If we don't “MySQL57” It is amended as follows “MySQL”, Then start in the command prompt window MySQL The program should enter “net start mysql57” instead of “net start mysql”.


边栏推荐
- Database performance analysis and optimization (internal training materials of Aite future team)
- 软件测试培训两个月骗局?培训机构到底如何选择?
- Jerry ac692x --- matrix keyboard addition
- 【C语言进阶】——指针进阶[Ⅰ]
- 点云处理---二叉树
- 【Unity Tilemap】教程 | Basic、Rule Tile、Prefab Brush、Tilemap Collider
- 电工学自学笔记1.21
- 100+ collection of medical image data sets
- 多线程的使用
- QT编写串口助手
猜你喜欢

IDEA报错Error running ‘Application‘ Command line is too long解决方案

Factor in R
@Detailed explanation of requestmapping

封装、继承、多态

如何安装ps的滤镜插件

软件测试真有网上说的那么好吗?

如何使用IDEA将项目上传到码云

Technical aspects passed easily, HR: those with only three years of experience in large factories are not worth 20K

【p5.js学习笔记】局部变量(let)与全局变量(var)声明

.net MVC understanding
随机推荐
QT programming serial port assistant
pycharm连接到远程docker
.net MVC的理解
点云处理--voxel filter
【p5.js学习笔记】鼠标交互事件
【C语言进阶】——指针进阶[Ⅰ]
怎样将IDEA与码云进行绑定
USB virtual serial port (CDC) limit speed test
2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程
【C语言必看】哟写BUG呢,我敢保证你踩过坑
Alibaba P8 architect talk: seven knowledge points (including interview questions) that must be learned well to become an architect
[阅读笔记] For Paper:R-CNN系列的三篇论文总结
有奖征文 | 2022 云原生编程挑战赛征稿活动开启!
禅道项目管理软件,敏捷开发团队不可或缺的工具
图像处理代码整理
Mysql 优化总结
@RequestMapping详解
leetcode系统性刷题(五)-----动态规划
QT编写串口助手
Generation and use of dynamic link library (error summary)