Check out example codes for "'Client does not support authentication protocol requested by server; consider upgrading MySQL client', sqlState: '08004',". It will help you in understanding the concepts better.

Code Example 1

$ mysql -u root -p
Enter password: (enter your root password)

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_new_password';
mysql> FLUSH PRIVILEGES;
mysql> quit

Learn ReactJs, React Native from akashmittal.com