Home  >  Article  >  Backend Development  >  问一下大伙,dedecms数据库连接文件怎么配置呀

问一下大伙,dedecms数据库连接文件怎么配置呀

WBOY
WBOYOriginal
2016-06-23 14:03:22936browse

问一下大伙,dedecms数据库连接文件怎么配置呀。求大侠指教。/data/common.inc.php 这个文件
//数据库连接信息
$cfg_dbhost = 'localhost';
$cfg_dbname = 'xinwen';
$cfg_dbuser = 'root';
$cfg_dbpwd = 'root';
$cfg_dbprefix = 'dede_';
$cfg_db_language = 'gbk';
?>
中的$cfg_dbname = 'xinwen';这个数据库名称指的是?


回复讨论(解决方案)

连接的数据库名

就是数据库名啊,比如你安装好MYSQL后默认不是有test和mysql数据库吗,你需要新建一个数据库,然后在这个库里才可以建表

我建了的,就是xinwen这个表,数据库恢复用的帝国的,而且也恢复成功了,但是就是没有连接上啊
这个我的配置

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