首先从mysql官网上下载mysql的安装程序: http://www.mysql.com/downloads/mysql/
(本例中,下载的是mysql-5.5.8.msi)

运行mysql-5.5.8.msi,按照提示安装

点击“next”:

选择“I accept the terms in the License Agreement”

点击“next”:

Setup Type 选择“Typical”,如要选择安装位置选 "custom"

点击“Install”

在安装过程中,会自动弹出mysql配置向导,一直根据安装提示,点击“next”,即可。

点击“next”

点击“next”

点击“next”


点击“next”(在开发环境请选择:Developer Machine ; 生产环境请选择:Server Machine)

点击“next”

点击“next”(在虚拟机上安装,用的默认磁盘c: 。如果在真实机上安装,请选择其它磁盘)

点击“next”

点击“next”

点击“next”(建议选择第二种“Best Support For Multilingualism” 支持多种语言)

点击“next”

需要设置root密码

设置root密码后,点击“next”

点击“execute”

点击“finish”。Mysql安装成功!

同时,Mysql安装成功,在任务管理器中,会出现“mysqld.exe”,如下图: