加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows10 and MySQL安装

发布时间:2020-12-14 04:29:07 所属栏目:Windows 来源:网络整理
导读:【问题背景】: 一日,在win10上面将mysql5.6下载解压后, 进行如下安装: mysqld --initialize --console # 初始化数据库: 无果,报错。 【解决办法】: 查看mysql在线文档时,忽然发现了mysql不同版本支持不同的平台。 Supported Platforms: MySQL Databa

【问题背景】:

一日,在win10上面将mysql5.6下载解压后,


进行如下安装:
mysqld --initialize --console # 初始化数据库:
无果,报错。

【解决办法】:

  • 查看mysql在线文档时,忽然发现了mysql不同版本支持不同的平台。
    Supported Platforms: MySQL Database
    也就是,只有mysql8.0 / 5.7 支持 Win10平台;mysql5.6对Linux平台的兼容性更好一点。
  • 在2.3 Installing MySQL on Microsoft Windows中,注意:
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。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读