How did I fix «Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'»?

How did I switch MySQL to caching_sha2_password instead of mysql_native_password?