1. 访问搜狐镜像 http://mirrors.sohu.com/mysql/MySQL-5.7/ 下载 mysql-5.7.23-winx64.msi 

2. 安装 mysql-5.7.23-winx64.msi  ,选择custom方式安装,就可以选择安装路径,否则默认安装在C盘,然后一路 next 。

3. 进入 mysql 安装目录:

    此时你可能会发现两个问题:一是没有my.ini文件,二是没有data文件夹;

    3.1 若没有my.ini文件,则自己创建个my.ini文件,将以下内容Copy进去

    

关于mysql-5.7.23-winx64.msi的安装
 1 # For advice on how to change settings please see
 2 # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
 3 # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
 4 # *** default location during install, and will be replaced if you
 5 # *** upgrade to a newer version of MySQL.
 6 [client]
 7 default-character-set = utf8
 8 [mysql]
 9 default-character-set = utf8
10 [mysqld]
11 character-set-client-handshake = FALSE
12 character-set-server = utf8
13 collation-server = utf8_bin
14 init_connect='SET NAMES utf8'
15 # Remove leading # and set to the amount of RAM for the most important data
16 # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
17 innodb_buffer_pool_size = 128M
18 # Remove leading # to turn on a very important data integrity option: logging
19 # changes to the binary log between backups.
20 # log_bin
21 # These are commonly set, remove the # and set as required.
22 basedir = D:\mysql
23 datadir = D:\mysql\data
24 port = 3306
25 # server_id = .....
26 # Remove leading # to set options mainly useful for reporting servers.
27 # The server defaults are faster for transactions and fast SELECTs.
28 # Adjust sizes as needed, experiment to find the optimal values.
29 join_buffer_size = 128M
30 sort_buffer_size = 16M
31 read_rnd_buffer_size = 16M 
32 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
View Code

相关文章:

  • 2021-04-20
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2018-08-19
  • 2021-12-17
  • 2021-05-12
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2021-12-09
  • 2022-02-19
  • 2021-10-04
  • 2021-08-31
  • 2021-10-10
相关资源
相似解决方案