1: Action 21:29:49: INSTALL.
1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498}
1: Action 21:29:49: FindRelatedProducts. Searching for related applications
1: Action 21:29:49: AppSearch. Searching for installed applications
1: Action 21:29:49: LaunchConditions. Evaluating launch conditions
1: This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again.
1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498} 3: 3
1: The action 'Install' for product 'MySQL Server 5.7.20' failed.
1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498}
1: Action 21:29:49: FindRelatedProducts. Searching for related applications
1: Action 21:29:49: AppSearch. Searching for installed applications
1: Action 21:29:49: LaunchConditions. Evaluating launch conditions
1: This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again.
1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498} 3: 3
1: The action 'Install' for product 'MySQL Server 5.7.20' failed.
---------------------------
先安装这个
2. 解压到d:\MySQL.(路径自己指定)
3. 在d:\MySQL下新建my.ini配置文件,内容如下:[mysqld]# 设置mysql的安装目录,即你解压缩安装包的位置
basedir = D:/MySQL# 设置mysql数据库的数据的存放目录
datadir = D:/MySQL/data
port = 3306# 允许最大连接数
max_connections=200
#设置字符集为utf8
loose-default-character-set = utf8
[client]
#设置客户端字符集
loose-default-character-set = utf8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES4. ,配置mysql的环境变量
在右击计算机-属性-高级系统设置-环境变量
新建属性
属性名为 MYSQL_HOME
变量值: 自己的解压路径
然后在系统环境变量里编辑path 在后面添加
%MYSQL_HOME%\bin.
确定退出。5. 安装MYSQL
开始->搜索框里->输入cmd,会看到cmd.exe 不要着急按回车右击鼠标 "以管理员的身份运行"。
进入路径:D:\MySQL\bin输入
mysqld --install MySQL --defaults-file=" D:\MySQL\my.ini"要指定defaults-file.
命令行中输入services.msc回车,可以看到MySQL已被添加到Services中,
点击Start按钮,启动MySQL删除mysql服务
mysqld –remove
http://www.microsoft.com/en-gb/download/details.aspx?id=40784
不过这年头,谁还用安装版,mysql一般都是部署在Linux上,你除了用解压版别无选择,好歹是要学要用mysql的吧,学会怎么用解压版的才是王道。