Launch MySQL on windows with no-install zip archive file
免安装 运行 mySQL 下载 v8.4 的MySQL文件包:https://dev.mysql.com/downloads/mysql/ 选择版本 = 8.4.2 LTS 操作系统 = Microsoft Windows 下载 Windows (x86, 64-bit), ZIP Archive (文件大小=247.5M)MD5= 9aad84967d8a94c390e76366ca85ec3c 将文件 mysql-8.4.2-winx64.zip 解压,注意压缩包内所有文件放在C:\mysql8路径下。⚠️不要更改路径中的C盘 确认在C:\mysql8路径下有文件夹bin、docs、include、lib、share,在C:\mysql8路径下新建配置文件my.ini (若已有,则仅编辑) 用 Notepad– 或 vsCode 等文本编辑器,编辑my.ini文件内容如下: [mysqld] # 设置安装目录 basedir = "C:\\mysql8" # 设置数据目录 datadir = "C:\\mysql8\\data" sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES #设置服务端的编码方式 character-set-server=utf8mb4 [client] #客户端编码方式,和服务端一致 loose-default-character-set=utf8mb4 # The port number to use when listening for TCP/IP connections. # On Unix and Unix-like systems, the port number must be # 1024 or higher unless the server is started by the root system user.
…