When developing our own site, we often encounter errors in establishing a connection to the database, internal server problems, etc. All this frighteningly affects the beginner. Even experienced bloggers can hardly cope with similar problems. But do not panic. More often, such problems are solved in two ways.
Wordpress
One of the most popular control systems for the "stuffing" of the resource. Small blogs and large projects appear on the WordPress platform. An error connecting to the database occurs precisely with this CMS.
WP PHP. ( ) MySQL. CMS 2003 4.8.1. WordPress , - .
, WordPress, . CMS . .
, FTP. . . PhpMyAdmin.
, , . .
, . , . .
, .
, , .
, . , . , . . ยซ ยป. , .
, , , : , . , . , , .
PhpMyAdmin, . , , . , .
. . , . , . . .
?
, . 99%. , , .
, , , MySQL . , , - . . .
. . , . .
, wp-config.php. : define('WP_ALLOW_REPAIR', true);. site.com/wp-admin/maint/repair.php. site.com . .
, . . wp-config.php.
, Denwer. wp-config.php. , .
, , . . . . , Openserver.
, . ยซยป. , , .
, - , . . , . test.php .
, site.com/test.php. , . .
, , . ยซยป, . . - .
Similar problems happen with many hosters, including Timeweb. An error in establishing a connection to the database can also be caused by interruptions on the server, or it may be associated with incorrect user contact. Therefore, if you decide to transfer your blog from the local computer or service to hosting, carefully register all the data that you enter when registering so that you do not have to restore it afterwards.