ampps mysql 自动关_Upgrade AMPPS MySQL to 5.7 (Windows)

本文档详细介绍了如何将AMPPS的MySQL从旧版本升级到5.7.17。首先,你需要关闭MySQL,然后下载并安装MySQL 5.7.17的win64版本。接着,替换AMPPS中的MySQL文件夹,创建新的数据目录,并复制配置文件。通过命令行初始化MySQL并设置新密码。按照这些步骤操作后,你的AMPPS将运行MySQL 5.7.17。
摘要由CSDN通过智能技术生成

Many people are asking about how to upgrade AMPPS MySQL to 5.7. I tried to upgrade it successfully and share at here.

1. Please shutdown MySQL first. Then download MySQL 5.7.17-winx64 here.

2. Go to your AMPPS folder (C:\Program Files (x86)\Ampps) and rename mysql folder to mysql-bak

3. Extract the downloaded MySQL Server Archive to AMPPS folder and rename to mysql

4. Create a data directory for MySQL's database's data files.

5. Copy my.ini file from old mysql-bak directory to mysql

6. Install MySQL by mysqld.exe

Open CMD or terminal, cd to C:\Program Files (x86)\Ampps\mysql\bin

Run:

mysqld.exe --defaults-file=..\my.ini --initialize-insecure --console

7. Change MySQL password:

Create a file: init.sql with this content:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'mypass';

Then Run:

mysqld.exe --init-file=..\init.sql

Now your AMPPS will run MySQL 5.7.17.

About how to install MySQL by command line, see https://stackoverflow.com/a/42088890

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值