Check out example codes for "access refused mysql xampp server". It will help you in understanding the concepts better.

Code Example 1

$cfg['Servers'][$i]['host'] = 'localhost';
and change it to
$cfg['Servers'][$i]['host'] = 'localhost:3307';

Learn ReactJs, React Native from akashmittal.com