Windows10 and MySQL安装

本文详细介绍了在Windows10上安装MySQL5.6遇到的问题及解决办法,指出MySQL5.6不支持Win10,推荐使用MySQL8.0/5.7,并说明了安装过程中需要的MicrosoftVisualC++2015RedistributablePackage依赖。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【问题背景】:

一日,在win10上面将mysql5.6下载解压后,
849963-20190609172713845-1297008903.png
进行如下安装:
mysqld --initialize --console # 初始化数据库:
无果,报错。

【解决办法】:

Important

MySQL 8.0 Server requires the Microsoft Visual C++ 2015 Redistributable Package to run on Windows platforms. Users should make sure the package has been installed on the system before installing the server. The package is available at the Microsoft Download Center. Additionally, MySQL debug binaries require Visual Studio 2015 to be installed.
就是说,需要 Microsoft Visual C++ 2015 Redistributable Package保持依赖。

MySQL Installer Method

最简单和推荐的方法是下载MySQL Installer(适用于Windows),并让它安装和配置特定版本的MySQL服务器。

  1. Download MySQL Installer from https://dev.mysql.com/downloads/installer/ and execute it.
  2. 确定初始安装MySQL产品时使用的设置类型。例如:
    • Developer Default
    • Server Only
    • Custom
  3. 安装服务器实例(和产品),然后开始服务器配置,首先为服务器实例选择以下可用性级别之一:
    • Standalone MySQL Server / Classic MySQL Replication (default)
    • InnoDB cluster
  4. 按照屏幕上的说明完成配置过程。有关每个单独步骤的更多信息,请参见2.3.3.3.1节,MySQL Server Configuration with MySQL Installer

转载于:https://www.cnblogs.com/daemonFlY/p/10994118.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值