Home  >  Article  >  CMS Tutorial  >  How to modify domain name in phpcms

How to modify domain name in phpcms

王林
王林Original
2020-02-08 16:08:522132browse

How to modify domain name in phpcms

You can directly modify the information in the database and manage it on phpmysql.

The specific method is as follows:

First use the phpmyadmin tool that comes with the php virtual host to back up the website mysql database;

Then use a text editor to open the .sql backup file .

Reminder: Never use Notepad to open a database file. It is very easy to cause the file encoding format to be incorrect and cause the database to be garbled. Remember this.

Use EditPlus, open the database file, click Search, and select "Replace". As shown below.

How to modify domain name in phpcms

In the pop-up dialog box, fill in the "old domain name" in the "Search" field, fill in the "new domain name" in the "Replace" field, and click "Replace All"

How to modify domain name in phpcms

After the replacement is completed, save the file. Then use the phpmyadmin tool to import it into your website database.

Related recommendations: phpcms tutorial

The above is the detailed content of How to modify domain name in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn