Check out example codes for "how to connect to xampp sql server on windows cmd". It will help you in understanding the concepts better.

Code Example 1

mysql -u root mysql

Code Example 2

cd c:\xampp\mysql\bin
mysql.exe -u root --password

Learn ReactJs, React Native from akashmittal.com