首页 > 数据库 >win11安装MySQL

win11安装MySQL

时间:2024-05-23 09:10:42浏览次数:20  
标签:Windows rule Firewall step MySQL win11 configuration 安装

目录[-]

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

 

参考文档:https://dev.mysql.com/doc/refman/8.4/en/

 

1. 下载

 

   mysql官网下载msi安装程序:https://dev.mysql.com/downloads/file/?id=526927

 

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
 

标签:Windows,rule,Firewall,step,MySQL,win11,configuration,安装
From: https://www.cnblogs.com/rogerfederer/p/18207566

相关文章

  • Windows中实现将bat或exe文件作为服务_且实现命令行安装、配置、启动、删除服务
    一、背景描述在Windows环境下进行日常的项目开发过程中,有时候需要将bat文件或exe文件程序注册为Windows的服务实现开机自己运行(没有用户登陆,服务在开机后也可以照常运行)、且对于那些没有用户交互界面的exe程序来说只要在后台运行即可,无需在桌面显示该exe程序窗口内容、无......
  • MySQL 5.7 InnoDB官方文档中锁的八个分类概述自译
    官方文档描述InnoDB使用的锁的八个分类共享锁(SharedLocks)和排它锁(ExclusiveLocks)InnoDB实现了两种标准的行级别锁,分别是共享锁(又称S锁)和排它锁(又称X锁)。一个共享锁允许持有它的事务去读取某行数据。一个排它锁允许持有它的事务去更新或删除某行数据。如果事务T1持有......
  • R语言中安装 rgdal 包
     001、R语言中安装 rgdal出现如下报错>install.packages("rgdal")将程序包安装入‘C:/Users/liujiaxin/AppData/Local/R/win-library/4.3’(因为‘lib’没有被指定)Warningininstall.packages:package‘rgdal’isnotavailableforthisversionofRAversi......
  • Asp .Net Core 系列:集成 CAP + RabbitMQ + MySQL(含幂等性)
    简介官网:https://cap.dotnetcore.xyz/CAP是什么?是一个EventBus,同时也是一个在微服务或者SOA系统中解决分布式事务问题的一个框架。它有助于创建可扩展,可靠并且易于更改的微服务系统。什么是EventBus?事件总线是一种机制,它允许不同的组件彼此通信而不彼此了解。组件可以......
  • CentOS 7 安装 nginx-rtmp
    一、安装依赖库1.gcc$gcc-vUsingbuilt-inspecs.COLLECT_GCC=gcc......Threadmodel:posixgccversion4.8.520150623(RedHat4.8.5-44)(GCC)#未安装:yuminstall-ygccgcc-c++2.pcre$rpm-qapcrepcre-8.32-17.el7.x86_64#未安装:yuminstall-y......
  • ROS学习篇1安装(Ubuntu18.04 Bionic +ROS Melodic)
    设置sources.listsudosh-c'echo"debhttp://packages.ros.org/ros/ubuntu$(lsb_release-sc)main">/etc/apt/sources.list.d/ros-latest.list'sudoapt-keyadv--keyserver'hkp://keyserver.ubuntu.com:80'--recv-keyC1CF6E31E6......
  • 【ubuntu】22.04安装Redis Insight及AnotherRedisDesktopManager
    一、RedisInsight1、官网下载https://redis.io/insight/#insight-form  2、安装sudodpkg-iRedisInsight-linux-amd64.deb 3、运行  二、AnotherRedisDesktopManager1、官网下载https://github.com/qishibo/AnotherRedisDesktopManager/releases/tag/v1.......
  • mysql基础知识
    1.SQL概述1.1SQL的特点具有综合统一性,不同的数据库支持的SQL稍有不同非过程化语言语言简捷,用户易接受以一种语言结构提供两种使用方式1.2SQL语言的组成DDL(数据定义语言)DML(数据操纵语言)DCL(数据控制语言)DQL(数据查询语言)2.MySQL的基本操作2.1DDL常用操作......
  • ubuntu(乌班图):阿里云安装源sources.list内容+附件
    #debcdrom:[Ubuntu22.04.4LTS_JammyJellyfish_-Releaseamd64(20240220)]/jammymainrestricted#Seehttp://help.ubuntu.com/community/UpgradeNotesforhowtoupgradeto#newerversionsofthedistribution.debhttp://mirrors.aliyun.com/ubuntu/jammy......
  • CentOS 7安装mediainfo以及ffmpeg工具
    基于CentOS7.9的基础镜像,安装mediainfo以及ffmpeg工具一、安装FROMcentos:centos7.9.2009RUNyuminstallepel-release-yRUNyuminstallmediainfo-yRUNrpm-Uvhhttps://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpmRUNyuminstallf......