Database migration issues – Error #1046 No database selected

99.99% chance that you configure wordpress with wrong database details. make sure you are using correct database details in wp-config.php file /** The name of the database for WordPress */ define(‘DB_NAME’, ‘database_name_here’); /** MySQL database username */ define(‘DB_USER’, ‘username_here’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘password_here’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); some possibilities are … Read more

How best to keep my localhost on Http while my Remote production is on Https

The correct approach is to use HTTPS everywhere, and to migrate to SSL properly: remove the Really Simple SSL plugin change your sites URL option to the https version search replace your database so all content uses the https URL via WP CLI or a search replace tool ( do not use an SQL query … Read more

production site routes to staging site after cloning

Check your production site’s wp-config.php file for one or both of these lines: define( ‘WP_HOME’, ‘https://example.com’ ); define( ‘WP_SITEURL’, ‘https://example.com’ ); …and set them as appropriate if they exist. These constants will override the settings in the database if they’re present. See Editing wp-config.php for details.