situation: wordpress multi site after migration hostinger temporary domain
Just remove
wp multisite config from wp-config php
define( ‘WP_ALLOW_MULTISITE’, true );
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
define( ‘DOMAIN_CURRENT_SITE’, ‘darkslateblue-porpoise-246889.hostingersite.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
save changes and check again.
my case it worked login and re enable wp multisite.
Check wp-config php table prefix
becuase network not installed.
Re add network info in wp-config php
wordpress Error establishing a database connection reasons
Common reasons for this error:
Database server issues: Problems with the MySQL server hosting your database, like high traffic or server downtime, can prevent WordPress from connecting.
Incorrect database credentials: The most common cause, where the database username, password, hostname, or database name in your WordPress configuration file (wp-config.php) is incorrect.
Corrupted database: A damaged database table or structure due to plugin issues, data transfer problems, or accidental deletion can lead to connection errors.
Corrupted WordPress files: Corrupted core WordPress files can interfere with database access.
Incorrect hostname: Using the wrong database hostname in your wp-config.php file.
Firewall restrictions: A firewall on your server might be blocking the necessary database connections.
Recent site migration: If you recently moved your WordPress site to a new hosting provider, the database details might not be updated correctly.