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
代码语言: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:phpStudyMySQL
datadir = D:phpStudyMySQLdata
# 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