---
title: "Mysql安装时问题  "
author: "zhb8015"
date: "2014-08-02T14:00:28Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2014-08-02T14:00:28Z"
id: 2099367
url: "https://peter8015.iteye.com/blog/2099367"
---

很久没有安装mysql的新版本，这次安装遇到问题不少，查了不少资料。在这里总结一下，以免以后重复摔跤。

 

1、版本的选择

下载地址[https://edelivery.oracle.com/EPD/Search/handle\_go](https://edelivery.oracle.com/EPD/Search/handle_go)

注意Oracle需要登录，从版本的名称可以看出具体的作用，标有下划线的是我下载的版本

 

Select Name Part Number Size (Bytes) [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45461-01.zip?file_id=71149519&amp%3Bamp%3Bamp%3Bamp%3Baru=17702236&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45461-01.zip)  MySQL Installer 5.6.19.0 Package V45461-01 510M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45475-01.zip?file_id=71148311&amp%3Bamp%3Bamp%3Bamp%3Baru=17702250&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45475-01.zip)  MySQL Database 5.6.19 ZIP for Windows x86 (64bit) V45475-01 243M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45044-01.zip?file_id=70316647&amp%3Bamp%3Bamp%3Bamp%3Baru=17592842&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45044-01.zip)  MySQL Cluster 7.3.5 ZIP for Windows x86 (64bit) V45044-01 359M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45043-01.zip?file_id=70316573&amp%3Bamp%3Bamp%3Bamp%3Baru=17592841&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45043-01.zip)  MySQL Cluster 7.3.5 MSI for Windows x86 (64bit) V45043-01 104M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V44986-01.zip?file_id=70314381&amp%3Bamp%3Bamp%3Bamp%3Baru=17592262&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V44986-01.zip)  MySQL Cluster Manager 1.3.1+Cluster MSI for Windows x86 (64bit) V44986-01 375M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45911-01.zip?file_id=71869846&amp%3Bamp%3Bamp%3Bamp%3Baru=17796722&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45911-01.zip)  MySQL Workbench 6.1.7 ZIP for Windows x86 (32bit, no installer) V45911-01 47M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45910-01.zip?file_id=71869832&amp%3Bamp%3Bamp%3Bamp%3Baru=17796721&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45910-01.zip)  MySQL Workbench 6.1.7 MSI for Windows x86 (32bit) V45910-01 42M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45392-01.zip?file_id=71081923&amp%3Bamp%3Bamp%3Bamp%3Baru=17692791&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45392-01.zip)  MySQL Utilities 1.4.3 ZIP for portable Python 2.7 binaries V45392-01 960K [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45390-01.zip?file_id=71081921&amp%3Bamp%3Bamp%3Bamp%3Baru=17692369&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45390-01.zip)  MySQL Utilities 1.4.3 ZIP for portable Python 2.6 binaries V45390-01 962K [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45398-01.zip?file_id=71081924&amp%3Bamp%3Bamp%3Bamp%3Baru=17692797&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45398-01.zip)  MySQL Utilities 1.4.3 MSI for portable Python 2.6 binaries V45398-01 8.2M [Download](https://edelivery.oracle.com/EPD/Download/process_download/V45956-01.zip?file_id=71907361&amp%3Bamp%3Bamp%3Bamp%3Baru=17803584&amp%3Bamp%3Bamp%3Bamp%3Buserid=6508435&amp%3Bamp%3Bamp%3Bamp%3Begroup_aru_number=13259737&amp%3Bamp%3Bamp%3Bamp%3Bcountry_id=156&amp%3Bamp%3Bamp%3Bamp%3Bpatch_file=V45956-01.zip)  MySQL Enterprise Monitor Documentation 3.0.12 (English) V45956-01

2、这个版本是绿色版本的，注册和启动过程

 

安装mysql服务

%mysql\_path%\\bin&gt; mysqld --install mysql --default-file="%mysql\_path%\\my-defaults.ini"

启动mysql

net start mysql

 

可以配置自己的ini文件：my.ini

\[client]  
default-character-set=utf8

\[mysqld]  
\# 设置mysql服务器编码  
\# The TCP/IP Port the MySQL Server will listen on   
port=3306   
character\_set\_server=utf8  
#basedir设置mysql的安装目录，如果目录中带空格则必须加引号  
#datadir设置mysql数据库的数据的存放目录，文件夹名必须是data  
basedir=D:\\mysql\\win32\\mysql-advanced-5.6.16-win32  
datadir=D:\\mysql\\win32\\mysql-advanced-5.6.16-win32\\data

 

3、问题总结

A、1067进程意外中止

 

首先查看 %mysql\_path%\\data\\xx.err文件

2014-08-02 12:52:21 6988 \[ERROR] Can't start server: Bind on TCP/IP port: No such file or directory  
2014-08-02 12:52:21 6988 \[ERROR] Do you already have another mysqld server running on port: 3306 ?  
2014-08-02 12:52:21 6988 \[ERROR] Aborting

 

从日志看出为端口占用，3306被谁占用了呢？

 

netstat -ano | findstr "3306"

tasklist|findstr "2736"

 

可以看到占用3306是mysqld，证明mysql服务已经启动。

 

其他报错原因请参考：

[http://happymen001.iteye.com/blog/592801](http://happymen001.iteye.com/blog/592801)

 

 

B、删除windows服务

cmd--&gt; sc  delete mysql

 

[http://school.cnd8.com/windows7/jiaocheng/80146.htm](http://school.cnd8.com/windows7/jiaocheng/80146.htm)

 

 

 

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__