Check out example codes for "mysql could not fetch tables". It will help you in understanding the concepts better.

Code Example 1

cd /opt/lampp/bin
sudo ./mysql_upgrade -u "username" -p

Learn ReactJs, React Native from akashmittal.com