The DEDE database just isn't on the exact same server, along with the information calling method-the
- bridgesaagaard48dg
- Jun 16, 2020
- 1 min read
data/common.inc.php
That is to save the database connection info, just transform this file.
Copy the code? php
//Database connection facts
$cfg_dbhost='localhost';
$cfg_dbname='dedecmsv56gbk';
$cfg_dbuser='root';
$cfg_dbpwd='abcdefghijk';
$cfg_dbprefix='dede_';
$cfg_db_language='gbk';
?
image data recovery software to change may be the cfg_dbhost database server address,
If it truly is not around the exact same server because the Web space, just fill inside the IP,
Generally use localhost or 127.0.0.1 on the same server
Copy the code $cfg_dbhost='123.456.789.123';
$cfg_dbname=''; that is the database name
$cfg_dbuser=''; this really is the username from the database
$cfg_dbpwd=''; database password
$cfg_dbprefix='dede_'; this is the prefix from the data table
$cfg_db_language='gbk'; This can be the encoding in the database. The encoding from the two DEDE web-sites must be the same. If lost image , garbled characters will appear.
Note that restore img file will discover a lot of space providers that do not let external links for the database, so it is best to ask them if they are able to connect for the external internet site.
The exact same server, distinct databases!
dede:sqlsql='SELECTidastmd,titleFROM` database name of another station`.`dede_archives`ORDERBYtmddescLIMIT0,10'
ahref=http://www.xxxxxx.com/plus/view.php?aid=[field:tmd/]title='[field:title/]'target='_blank'[field:title/]/li
/dede:sql
Comments