| // |
| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, |
| // software distributed under the License is distributed on an |
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // KIND, either express or implied. See the License for the |
| // specific language governing permissions and limitations |
| // under the License. |
| // |
| |
| = 在 Windows 操作系统中设置 MySQL 数据库服务器 |
| :jbake-type: tutorial |
| :jbake-tags: tutorials |
| :jbake-status: published |
| :icons: font |
| :syntax: true |
| :source-highlighter: pygments |
| :toc: left |
| :toc-title: |
| :description: 在 Windows 操作系统中设置 MySQL 数据库服务器 - Apache NetBeans |
| :keywords: Apache NetBeans, Tutorials, 在 Windows 操作系统中设置 MySQL 数据库服务器 |
| |
| MySQL 数据库服务器是最常用的一个开源数据库服务器,通常用于 Web 应用程序开发。 |
| |
| 本文档介绍了在 Windows 操作系统中设置 MySQL 数据库服务器 5.6 版的一系列步骤。它未介绍 MySQL 配置详细信息,它介绍了一系列必需的步骤。 |
| |
| 有关为其他操作系统安装和配置 MySQL 数据库服务器的信息,请参阅link:http://dev.mysql.com/doc/refman/5.6/en/installing.html[+安装和升级 MySQL+] 文档。 |
| |
| *注:*link:../../72/ide/install-and-configure-mysql-server.html[+在 Windows 操作系统中设置 MySQL 数据库服务器 5.1 版+]文档提供了有关在 Windows 上设置 5.1 版 MySQL 服务器的说明。 |
| |
| |
| |
| |
| |
| == 开始下载 |
| |
| 1. 转到 link:http://dev.mysql.com/downloads/installer/[+http://dev.mysql.com/downloads/installer/+]。 |
| 2. 单击“下载”按钮。 |
| 3. 将安装文件保存到系统中。 |
| |
| <<top,返回页首>> |
| |
| |
| == 开始安装 |
| |
| 下载完成后,运行安装程序,如下所示: |
| |
| 1. 右键单击下载的安装文件(例如 ``mysql-installer-community-5.6.14.0.msi`` )并单击“运行”。 |
| MySQL 安装程序将启动。 |
| |
| [start=2] |
| . 在“欢迎”面板上,选择“安装 MySQL 产品”。 |
| |
| [start=3] |
| . 在“许可证信息”面板上,查看许可证协议,单击接受复选框,然后单击“下一步”。 |
| |
| [start=4] |
| . 在“查找最新产品”面板上,单击“执行”。 |
| 操作完成后,单击“下一步”。 |
| |
| [start=5] |
| . 在“安装类型”面板上,选择“定制”选项,然后单击“下一步”。 |
| |
| [start=6] |
| . 在“功能选择”面板上,确保选中 MySQL 服务器 5.6.x,然后单击“下一步”。 |
| |
| [start=7] |
| . 在“检查要求”面板上,单击“下一步”。 |
| |
| [start=8] |
| . 在“安装”面板上,单击“执行”。 |
| 当服务器安装成功完成时,信息消息将显示在“安装”面板上。单击“下一步”。 |
| |
| [start=9] |
| . 在“配置”面板上,单击“下一步”。 |
| |
| [start=10] |
| . 在“MySQL 服务器配置”的第一页 (1/3) 上,设置以下选项: |
| * *服务器配置类型*。选择“开发计算机”选项。 |
| * *启用 TCP/IP 联网*。确保选中该复选框并指定以下选项: |
| * *端口号*。指定连接端口。默认设置为 3306 - 如果没有特殊理由更改此设置,请保留其不变。 |
| * *打开防火墙端口以进行网络访问*。选择此项可为指定端口添加防火墙例外。 |
| * *高级配置。*选中“显示高级选项”复选框可显示其他配置页,用于根据需要为服务器实例设置高级选项。 |
| |
| *注:*必须选择此选项,才能到达设置网络选项的面板,您将在其中对 MySQL 服务器使用的端口关闭防火墙。 |
| |
| 单击“下一步”。 |
| |
| [start=11] |
| . 在“MySQL 服务器配置”的第二页 (2/3) 上,设置以下选项: |
| * *超级用户帐户口令*。 |
| * *MySQL 超级用户口令*。输入超级用户的口令。 |
| * *重复口令*。重新键入超级用户的口令。 |
| |
| *注:*超级用户是对 MySQL 数据库服务器具有完全访问权限(如创建、更新和删除用户等)的用户。请记住超级用户口令 - 以后在创建样例数据库时,您将需要此口令。 |
| |
| * *MySQL 用户帐户*。单击“添加用户”创建用户帐户。在“MySQL 用户详细信息”对话框中,输入用户名、数据库角色和口令(例如 ``!phpuser`` )。单击“确定”。 |
| 单击“下一步”。 |
| |
| . 在“MySQL 服务器配置”的第三页 (3/3) 上,设置以下选项: |
| * *Windows 服务名称*。指定要用于 MySQL 服务器实例的 Windows 服务名称。 |
| * *在系统启动时启动 MySQL 服务器*。如果需要 MySQL 服务器在系统启动时自动启动,则保留该复选框为选中状态。 |
| * *Windows 服务运行身份*。选择以下任一选项: |
| * *标准系统帐户*。多数情况下推荐使用。 |
| * *定制用户*。高级情况下推荐使用现有用户帐户。 |
| 单击“下一步”。 |
| |
| . 在“配置概览”页上,单击“下一步”。 |
| . 当配置成功完成时,信息消息将显示在“完成”面板上。单击“完成”。 |
| |
| *注*:要检查是否已成功完成安装,请运行“任务管理器”。如果 ``MySQLd-nt.exe`` 位于“进程”列表中,则表示数据库服务器正在运行。 |
| |
| <<top,返回页首>> |
| |
| link:/about/contact_form.html?to=3&subject=Feedback:%20Setting%20Up%20the%20MySQL%20Database%20Server%20in%20the%20Windows%20Operating%20System[+发送有关此教程的反馈意见+] |
| |
| |
| |
| == 另请参见 |
| |
| * link:http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG1790[+使用 NetBeans IDE 开发应用程序+]中的_使用和连接数据库_ |
| * link:../../trails/php.html[+PHP 学习资源+] |
| * link:mysql.html[+连接 MySQL 数据库+] |
| * link:http://www.mysql.com/why-mysql/java/[+MySQL 和 Java - 资源+] |
| * link:http://dev.mysql.com/doc/refman/5.6/en/index.html[+MySQL 5.6 参考手册+] |
| |
| <<top,返回页首>> |
| |