Home > Article > CMS Tutorial > What should I do if the data connection fails after DreamWeaver uploads to the server?
What should I do if the data connection fails after DreamWeaver uploads to the server?
After DreamWeaver uploads to the server, it is very common for the data connection to fail. This problem can be solved by entering common.inc.php in the data folder and modifying the corresponding data in the database.
Recommended learning: Dream Weaver cms
First enter common.inc.php in the data folder to modify the data corresponding to the database
Code As follows:
//数据库连接信息 $cfg_dbhost = 'localhost'; $cfg_dbname = 'dedecmsv57utf8sp1'; $cfg_dbuser = 'root'; $cfg_dbpwd = '123456'; $cfg_dbprefix = 'dede_'; $cfg_db_language = 'utf8';
Then change these to the corresponding information of the database on the server and it will be OK
The above is the detailed content of What should I do if the data connection fails after DreamWeaver uploads to the server?. For more information, please follow other related articles on the PHP Chinese website!