Home  >  Article  >  CMS Tutorial  >  What should I do if the data connection fails after DreamWeaver uploads to the server?

What should I do if the data connection fails after DreamWeaver uploads to the server?

藏色散人
藏色散人Original
2019-12-11 10:54:462341browse

What should I do if the data connection fails after DreamWeaver uploads to the server?

What should I do if the data connection fails after DreamWeaver uploads to the server?

After DreamWeaver uploads to the server, it is very common for the data connection to fail. This problem can be solved by entering common.inc.php in the data folder and modifying the corresponding data in the database.

Recommended learning: Dream Weaver cms

First enter common.inc.php in the data folder to modify the data corresponding to the database

Code As follows:

//数据库连接信息 
$cfg_dbhost = 'localhost'; 
$cfg_dbname = 'dedecmsv57utf8sp1'; 
$cfg_dbuser = 'root'; 
$cfg_dbpwd = '123456'; 
$cfg_dbprefix = 'dede_'; 
$cfg_db_language = 'utf8';

Then change these to the corresponding information of the database on the server and it will be OK

The above is the detailed content of What should I do if the data connection fails after DreamWeaver uploads to the server?. 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