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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章