Home > Database > Mysql Tutorial > Detailed explanation of the installation summary of MySQL5 green version under windows

Detailed explanation of the installation summary of MySQL5 green version under windows

黄舟
Release: 2017-03-25 13:44:50
Original
1437 people have browsed it

这篇文章主要介绍了MySQL5绿色版windows下安装总结,需要的朋友可以参考下

1 下载MySQL

2 安装过程

2.1 解压缩mysql-5.7.11-winx64.zip到一个目录。

我解压到的目录为D:\mysqlDev\

2.2 编写MySQL的运行配置文件my.ini,或者修改之前的.ini文件名为my.ini

在my.ini下加入如下内容:

[mysqld]
# 设置mysql的安装目录
 basedir = D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64
# 设置mysql数据库的数据的存放目录,必须是data,或者是\\xxx\data
datadir = D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\data
#设置端口
port = 3306
# 设置mysql服务器的字符集
default-character-set=gbk
备注:如果没有看到设置字符集的字符串,可以不用设置
[client]
# 设置mysql客户端的字符集
default-character-set=gbk
Copy after login

2.3 安装mysql服务

从MS-DOS窗口进入目录D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\bin,运行如下命令:

mysqld --install MySQL --defaults-file=D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\my.ini
Copy after login

备注:这个地方可能会出现一个问题:Install/Remove of the Service Denied!

如果报这个错的话,试试利用管理员身份运行cmd

2.4 启动mysql数据库

还在上面的命令窗口里面,输入命令:net start MySQL

这样就启动了mysql服务。

如果命令不好用的话,就单击桌面的计算机,然后点击“”管理“”,打开管理工具,找到mysql服务,通过右键选择启动

2.5 删除服务

执行mysqld --remove MySQL即可

The above is the detailed content of Detailed explanation of the installation summary of MySQL5 green version under windows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template