Home > Database > Mysql Tutorial > body text

Mysql解压版的安装_MySQL

WBOY
Release: 2016-06-01 13:17:30
Original
1065 people have browsed it

Mysql解压版的安装

                            ——@梁WP

 

1.解压mysql到合适的地方

 

2.右击计算机-属性-高级系统设置-高级-环境变量,弹出“环境变量”对话框,修改下面的系统变量

 

3.新建MYSQL_HOME变量,值为刚才的解压路径,如D:/mysql-5.6.15

 

4.编辑Path变量,在最后面添加:%MYSQL_HOME%/bin;

 

5.在D:/mysql-5.6.15下面,新建my.ini

 

6.在my.ini填入以下内容:

[client]

port=3306

default-character-set=utf8

 

[mysqld]

port=3306

character_set_server=utf8

basedir=D:/mysql-5.6.15

datadir=D:/mysql-5.6.15/data

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

 

[WinMySQLAdmin]

D:/mysql-5.6.15/bin/mysqld.exe

 

7.在“运行”,输入cmd,然后进入D:/mysql-5.6.15/bin

 

8.执行mysqld --install MySQL --defaults-file=”D:/mysql-5.6.15/my.ini”,意思是执行mysqld.exe,进行安装,服务名字自定义为MySQL,安装信息的文件为D:/mysql-5.6.15/my.ini

 

9.安装成功的话,执行net start MySQL,以启动MySQL服务。

 

10.如果启动成功,那就OK了。

 

11.如果启动失败,就先执行mysqld --remove MySQL,卸载掉MySQL服务,然后再重新执行第8步和第9步。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!