Home >CMS Tutorial >DEDECMS >Where is the dedecms database configuration file?

Where is the dedecms database configuration file?

藏色散人
藏色散人Original
2019-08-01 10:12:562577browse

Where is the dedecms database configuration file?

Where is the dedecms database configuration file?

dedecms database configuration file is in the data folder in the root directory of the website, that is, the common.inc.php file.

Modification method:

Download this file using ftp and edit it with notepad.

The following is the content of the dede database configuration file:

<?php 
//数据库连接信息 
$cfg_dbhost = &#39;localhost&#39;;网站地址 
$cfg_dbname = &#39;data&#39;;数据库名 
$cfg_dbuser = &#39;data_user&#39;;数据库用户名 
$cfg_dbpwd = &#39;admin&#39;;数据库连接密码 
$cfg_dbprefix = &#39;dede_&#39;;数据库前缀 
$cfg_db_language = &#39;gbk&#39;;数据库语言版本 
?>

Just modify it according to your needs...

For more dedecms technical articles, please visit the dedecms usage tutorial column!

The above is the detailed content of Where is the dedecms database configuration file?. 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