I am trying to change my website into multisite on my staging server.
When I add define('MULTISITE', true); in wp-config.php on my local machine setup, it works fine. Then I go to the Network admin and able to setup multiple sites. I add further code in .htaccess and wp-config.php.
But when I add define('MULTISITE', true); in wp-config.php on my staging site and refresh the page it show me the database connection error. I checked the database and I saw that it is not creating the required tables like, wp_blogs, wp_blogsmeta, wp_site, etc.
I tried to setup by adding the missing tables manually, but still it is showing the same error.
I checked my database credentials, everything is fine.
What should I do? Thanks in advance.

