前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >phpStudy升级mysql版本为mysql-5.7.17

phpStudy升级mysql版本为mysql-5.7.17

作者头像
96php.cn
发布2018-04-28 15:01:37
2.7K0
发布2018-04-28 15:01:37
举报
文章被收录于专栏:www.96php.cnwww.96php.cn

phpStudy 2016.11.03 版本

下载地址:官方下载地址


Apache+Nginx+LightTPD+IIS

php5.2 php5.3  php5.5 php7.0

MySQL phpMyAdmin MySQL-Front

16种组合自由切换,是下面5个版本的合集

同时支持apache/nginx/Lighttpd和IIS7/8/6


QQ截图20170215102901.png
QQ截图20170215102901.png

我们可以看到mysql版本为5.5.53

我们如何升级高版本呢?

例如我们要升级到mysql-5.7.17

官网下载地址:https://dev.mysql.com/downloads/mysql/

QQ截图20170215104606.png
QQ截图20170215104606.png

QQ截图20170215104936.png
QQ截图20170215104936.png

停止mysql进程

重命名MySQL_bak  备份之前的mysql数据库

新建MySQL空文件夹

QQ截图20170215105055.png
QQ截图20170215105055.png

解压mysql 5.7.17 到MySql文件夹

复制一份 my-default.ini

重命名为my.ini

QQ截图20170215105201.png
QQ截图20170215105201.png
QQ截图20170215105217.png
QQ截图20170215105217.png

建议用notepad++打开my.ini

代码语言:javascript
复制
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

搜索

代码语言:javascript
复制
basedir   #mysql的安装路径
datadir   #data的路径

去掉前面的#号

修改完成版本

代码语言:javascript
复制
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = D:\phpStudy\MySQL
datadir = D:\phpStudy\MySQL\data
# port = .....
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
QQ截图20170215105803.png
QQ截图20170215105803.png

安装完成

启动mysql

QQ截图20170215105924.png
QQ截图20170215105924.png

查看数据库版本

QQ截图20170215110017.png
QQ截图20170215110017.png

成功升级mysql 5.7.17

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年2月15日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档