当前位置:网站首页>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”.


边栏推荐
- Alibaba P8 architect talk: seven knowledge points (including interview questions) that must be learned well to become an architect
- .net MVC understanding
- 多线程的使用
- MySQL与IDEA连接
- leetcode系统性刷题(四)-----哈希表与字符串
- 域名解析问题记录
- 电工学下册自学笔记1.23
- Database performance analysis and optimization (internal training materials of Aite future team)
- abstract、static、final
- 【C语言笔记分享】自定义类型:结构体,枚举,联合(建议收藏)
猜你喜欢
随机推荐
Sql Server STUFF与FOR XML PATH
点云处理--voxel filter
软件测试培训两个月靠谱吗?
电工学自学笔记1.22
1.1-注释
R language drawing / drawing / drawing 2
es6 Promise
JVM performance tuning
软件测试的培训机构靠谱吗
Collection集合
Multithreading (ThreadPoolExecutor of thread pool)
The difference between using switch in a loop and using break and continue after executing a condition
1.2-进制转换
IDEA报错Error running ‘Application‘ Command line is too long解决方案
三维点云处理系列----PCA
100+ collection of medical image data sets
ROS系统安装
MySQL面试题大全(陆续更新)
pycharm连接到远程docker
leetcode系统性刷题(四)-----哈希表与字符串


![[阅读笔记] For Paper:R-CNN系列的三篇论文总结](/img/1d/8b862ac66ea04d9371f64e35fc4396.png)






