phpStudy升级mysql版本为mysql-5.7.17

时间:2023年05月11日

/

来源:网络

/

编辑:佚名

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

我们可以看到mysql版本为5.5.53
我们如何升级高版本呢?
例如我们要升级到mysql-5.7.17
网站下载地址:https://dev.mysql.com/downloads/mysql/


停止mysql进程
重命名MySQL_bak  备份之前的mysql数据库
新建MySQL空文件夹

解压mysql 5.7.17 到MySql文件夹
复制一份 my-default.ini
重命名为my.ini

建议用notepad++打开my.ini
# 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
复制
搜索
basedir   #mysql的安装路径
datadir   #data的路径
复制
去掉前面的#号
修改完成版本
# 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
复制

安装完成
启动mysql

查看数据库版本

成功升级mysql 5.7.17
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。