当前位置: 首页 > news >正文

win11安装MySQL

目录[-]

  1. 1.  1. 下载
  2. 2.  2. 安装

参考文档:MySQL :: MySQL 8.4 Reference Manual

1. 下载

   mysql官网下载msi安装程序:MySQL :: Begin Your Download

2. 安装

   运行下载的mis程序,逐步安装。

  • 安装模式: complete;

  • 进入配置:

  • data directory: mysql所有进行管理的物理数据存储路径,自行定义。

  • Type and Networking -Server Configuration Type: 不同的服务器配置模式对主机内存占用不同,本文使用development,针对个人电脑(typically this is your personal workstation).

  • Type and Networking -Connectivity: 定义如何连接到此MYSQL服务端。协议跟端口及windows端口防火墙均默认即可。named pipe参数用来授权用户访问级别,推荐Minimum access to all users (RECOMMENDED),Shared Memory参数用来定义共享内存连接,在同一台主机上定义多个mysql实例时有用。此参数区分大小写。

  • 高级配置不勾选show advanced选项,太麻烦辽

  • 账户角色: 记录root用户密码。其他用户有必要的话新增即可

  • 服务运行模式: 默认以windows服务模式自动运行,由windows服务统一管理。或者以mysql服务程序方式手动运行。此处我们默认windows统一管理运行。运行用户默认,保证权限。

  • 服务文件权限: 默认第一项服务运行用户及管理员组。

  • 演示数据库: 建不建无所谓。

  • 应用配置并等待完成即可:

应用配置时可能会报如下失败:

进入windows服务管理,将mysql84服务的登录属性调整为本地系统账户即可:

配置日志如下:

Beginning configuration step: Writing configuration file

Saving my.ini configuration file...
Saved my.ini configuration file.
Ended configuration step: Writing configuration file

Beginning configuration step: Updating Windows Firewall rules

Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 3306" protocol=TCP localport=3306

已删除 1 规则。
确定。


Adding a Windows Firewall rule for MySQL84 on port 3306.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
确定。


Successfully added the Windows Firewall rule.
Adding a Windows Firewall rule for MySQL84 on port 33060.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 dir=in action=allow
确定。


Successfully added the Windows Firewall rule.
Ended configuration step: Updating Windows Firewall rules

Beginning configuration step: Adjusting Windows service

Attempting to grant the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.
Granted permissions to the data directory.
Granted permissions to the install directory.
Adding new service
New service added
Ended configuration step: Adjusting Windows service

Beginning configuration step: Starting the server

Attempting to start service MySQL84...
MySQL Server - start.
C:\Program Files\MySQL\MySQL Server 8.4\bin\mysqld.exe (mysqld 8.4.0) starting as process 33368
InnoDB initialization has started.
InnoDB initialization has ended.
CA certificate ca.pem is self signed.
Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
C:\Program Files\MySQL\MySQL Server 8.4\bin\mysqld.exe: ready for connections. Version: '8.4.0'  socket: ''  port: 3306  MySQL Community Server - GPL.
X Plugin ready for connections. Bind-address: '::' port: 33060
Successfully started service MySQL84.
Waiting until a connection to MySQL Server 8.4.0 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Successfully connected to MySQL Server 8.4.0.
Ended configuration step: Starting the server

Beginning configuration step: Updating the Start menu link

Attempting to verify command-line client shortcut.
Verified command-line client shortcut.
Verified command-line client shortcut.
Ended configuration step: Updating the Start menu link

Beginning configuration step: Updating example databases

Updating example databases...
Ended configuration step: Updating example databases

相关文章:

  • 快速搭建uni-app项目,vue2、Vue3与图鸟UI组件封装
  • 【第八章】多线程——Thread类
  • (1)无线电失控保护(二)
  • Compose Multiplatform 1.6.10 发布,解释一些小问题, Jake 大佬的 Hack
  • 【计算机毕业设计】基于SSM+Vue的线上旅行信息管理系统【源码+lw+部署文档】
  • 正则工具类
  • 如何利用Ubuntu服务器运行深度学习项目?
  • WPF中CommandParameter用法
  • 不用从头训练,通过知识融合创建强大的统一模型
  • 【Spring Boot】在项目中使用Spring AI
  • 《QT实用小工具·六十五》基于QPropertyAnimation实现的移动动画和控件覆盖
  • 13、Go Gin集成Viper配置
  • Typescript高级: 深入理解Extract类型
  • 2010-2022年各省新质生产力数据(含原始数据+测算代码+计算结果)
  • 【MySQL】库的操作和表的操作
  • Liunx系统中修改文件的创建时间以及访问时间
  • 汇编原理(二)
  • 为 AWS 子账户添加安全组修改权限
  • AI数据面临枯竭
  • 网络安全基础技术扫盲篇 — 名词解释
  • 暗蓝评《性别打结》丨拆解性别之结需要几步?
  • 宜昌打造“算力之都”:产业链快速延伸,追逐千亿级产值
  • 从腰缠万贯到债台高筑、官司缠身:尼泊尔保皇新星即将陨落?
  • 牛市早报|国家发改委:将推出做好稳就业稳经济推动高质量发展若干举措
  • “杭州六小龙”的招聘迷局
  • 新华每日电讯:从上海街区经济看账面、市面、人面、基本面