Can WP-CLI modify database connection details in existing wp-config file?

You can use wp config set to update any existing value in wp-config or to add a new value: wp config set DB_NAME some_db_name wp config set DB_USER some_db_username wp config set DB_PASSWORD you_secret_value_pass See https://developer.wordpress.org/cli/commands/config/set/ Keep in mind that values are case sensitive, so if you do wp config set db_name some-db, it will … Read more

Changing WP_MEMORY_LIMIT doesn’t affect actual memory limit

So you’ve tried setting the WP_MEMORY_LIMIT variable in the wp-config.php file, but have you tried .user.ini or .php.ini? Create one of those files (yes, with the period in front) and then use: memory_limit=30M Or whatever value you’re looking for. By default, WordPress is set to 40mb for a single installation, and 64mb for a multisite … Read more