Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2019-12-11 10:54:46
Original
2317 people have browsed it

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';
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!