Home CMS Tutorial DEDECMS How to configure dedecms file

How to configure dedecms file

Jul 20, 2019 pm 01:21 PM
dedecms Configuration file

How to configure dedecms file

Some friends need to modify the database configuration when changing the website space and Dede database. Such as database prefix, database name, etc.
Where can I find the Dede database configuration file?
The path where the Dede database configuration file is located is: /data/common.inc.php
Modification method:
Download this file using ftp and edit it with notepad.

Related recommendations: "dedecms tutorial"

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;;数据库语言版本
?>
Copy after login

Modify it according to your needs Can!

The above is the detailed content of How to configure dedecms file. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where is the win10 user profile? How to set the user profile in Win10 Where is the win10 user profile? How to set the user profile in Win10 Jun 25, 2024 pm 05:55 PM

Recently, many Win10 system users want to change the user profile, but they don’t know how to do it. This article will show you how to set the user profile in Win10 system! How to set up user profile in Win10 1. First, press the "Win+I" keys to open the settings interface, and click to enter the "System" settings. 2. Then, in the opened interface, click "About" on the left, then find and click "Advanced System Settings". 3. Then, in the pop-up window, switch to the "" option bar and click "User Configuration" below.

Install Helm on Ubuntu Install Helm on Ubuntu Mar 20, 2024 pm 06:41 PM

Helm is an important component of Kubernetes that simplifies the deployment of Kubernetes applications by bundling configuration files into a package called HelmChart. This approach makes updating a single configuration file more convenient than modifying multiple files. With Helm, users can easily deploy Kubernetes applications, simplifying the entire deployment process and improving efficiency. In this guide, I'll cover different ways to implement Helm on Ubuntu. Please note: The commands in the following guide apply to Ubuntu 22.04 as well as all Ubuntu versions and Debian-based distributions. These commands are tested and should work correctly on your system. in U

Effective method to solve the problem of garbled characters in the eclipse editor Effective method to solve the problem of garbled characters in the eclipse editor Jan 04, 2024 pm 06:56 PM

An effective method to solve the garbled problem of eclipse requires specific code examples. In recent years, with the rapid development of software development, eclipse, as one of the most popular integrated development environments, has provided convenience and efficiency to many developers. However, you may encounter garbled code problems when using eclipse, which brings trouble to project development and code reading. This article will introduce some effective methods to solve the problem of garbled characters in Eclipse and provide specific code examples. Modify eclipse file encoding settings: in eclip

How to configure files in spring How to configure files in spring Jan 18, 2024 pm 03:53 PM

Steps of spring configuration file: 1. Create XML configuration file; 2. Add necessary dependencies; 3. Configure data source; 4. Define beans; 5. Configure other components; 6. Inject dependencies; 7. Configure environment; 8. Enable Automatic assembly; 9. Deploy the application; 10. Start the application. Detailed introduction: 1. Create an XML configuration file and create an XML file in the resource directory of the project. This file will contain Spring configuration information; 2. Add necessary dependencies, etc.

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

Tutorial on changing configuration source in ubantu. Tutorial on changing configuration source in ubantu. Feb 18, 2024 pm 04:51 PM

To change the software source configuration on Ubuntu, you can follow these steps: Back up the current software source configuration file (optional): Execute the following command to back up the current software source configuration file: sudocp/etc/apt/sources.list/etc /apt/sources.list.backup Open the software source configuration file: Use a text editor (such as nano or vi) to open the software source configuration file: sudonano/etc/apt/sources.list Select the appropriate software source image: In the open file , different software source images will be listed. Comment out the current software source image line and add the # character in front of the line. Add new below

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

See all articles