Home  >  Article  >  Database  >  Mysql安装命令(免安装版)_MySQL

Mysql安装命令(免安装版)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:38:391083browse

bitsCN.com


Mysql安装命令(免安装版)

 

1、down load mysql-5.5.28-win32.zip 

2、unzip it to a path such as d:/mysq/mysql-5.5.28-win32 

3、copy the file my-huge.ini and rename it to my.ini 

     

4、添加如下内容到my.ini的mysqld字段 

    basedir=D:/mysql/mysql-5.5.28-win32 

    datadir=D:/mysql/mysql-5.5.28-win32/data 

    character-set-server=utf8 

 

5、添加入戏内容到client字段 

   default-character-set=utf8 

 

6、以administrator的身份启动命令行cmd,cd到mysql的解压路径的

bin文件夹,运行如下命令mysqld -install   此时已经安装了mysql服务。
 

如出现Install/Remove of the Service Denied!提示说明你没用administrator

权限。如出现Service successfully installed.说明安装成功 

 

7、运行net start mysql启动mysql服务 
 

bitsCN.com
Statement:
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