绿色小草 發表於 2023-11-27 00:00:00

织梦上传服务器后数据连接失败问题的解决方法

<span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>进入data文件夹里的common.inc.php进行修改数据库相对应的数据 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <div class="right">
                <span><u>复制代码</u></span>
</div>
        代码如下:</div>
<div class="msgborder" id="phpcode1" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        //数据库连接信息 <br>
        $cfg_dbhost = 'localhost'; <br>
        $cfg_dbname = 'dedecmsv57utf8sp1'; <br>
        $cfg_dbuser = 'root'; <br>
        $cfg_dbpwd = '123456'; <br>
        $cfg_dbprefix = 'dede_'; <br>
        $cfg_db_language = 'utf8'; </div>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>把这些改为服务器上的数据库相对应的信息就OK了 </span>
頁: [1]
查看完整版本: 织梦上传服务器后数据连接失败问题的解决方法