Check out example codes for "The server requested authentication method unknown to the client". It will help you in understanding the concepts better.

Code Example 1

CREATE USER 'seuUsuario'@'localhost' IDENTIFIED WITH mysql_native_password BY 'suaSenha';
GRANT ALL PRIVILEGES ON . TO 'seuUsuario'@'localhost' WITH GRANT OPTION;

Learn ReactJs, React Native from akashmittal.com