XAMPP--使用手册-更新手册

有时候随着 php版本和 mysql版本的需求需要对其版本进行升级,一下是今天总结的部分步骤,仅供参考.

升级php部分
参考文章
1、在现有的 XAMPP 中,将 php 目录改名为 phpbak ,这样可以确保出错时再改回来,恢复原状;
2、下载新的 php for Windows (选择 Thread Safe 版本,zip 格式);
3、把新版本的 PHP 解压到 xampp/php 这个目录中;
4、从旧的 phpbak 目录中复制 php.ini 文件,复制到新的 php 目录中;
5、重启 apache 服务器。

升级mysql版本时容易出错,打不开mysql,不建议进行升级,如若平时有打开不了的情况,可以删除 xmapp\mysql\data\ibdata1 文件,然后重启 mysql.

升级xampp
升级前需要先备份数据:

XAMPP 安装之后,真正的用户数据基本上涉及下面三个地方:

  1. xampp/htdocs 目录: 这是所有网站的 文件系统 。
  2. xampp/mysql/data 目录:这是所有网站的数据库。
  3. xampp/apache/conf/extra/httpd-vhosts.conf 文件:这是你的虚拟主机(假设你在 XAMPP 里面使用了虚拟主机的话)配置文件。

因此,你完整备份上述3个目录/文件,然后删除旧版 XAMPP,然后安装新版 XAMPP,然后把上述三处内容复制到新版 XAMPP 的对应位置。

所有的配置文件:
The main XAMPP configuration files are located as follows:

Apache configuration file: \xampp\apache\conf\httpd.conf, \xampp\apache\conf\extra\httpd-xampp.conf
PHP configuration file: \xampp\php\php.ini
MySQL configuration file: \xampp\mysql\bin\my.ini
FileZilla Server configuration file: \xampp\FileZillaFTP\FileZilla Server.xml
Apache Tomcat configuration file: \xampp\tomcat\conf\server.xml
Apache Tomcat configuration file: \xampp\sendmail\sendmail.ini
Mercury Mail configuration file: \xampp\MercuryMail\MERCURY.INI

数据库管理文件
http://localhost/phpmyadmin

占位

看这里,看这里
文章总目录:博客导航
参考文章:https://blog.csdn.net/u_ascend/article/details/101055164

发布了131 篇原创文章 · 获赞 18 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/u_ascend/article/details/101055164
今日推荐