I changed MySQL port in XAMPP, now how do I listen to the new port?
Goto xampp>phpMyAdmin
Directory.
Find the config.inc.php
file.
Now change this line:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
To
$cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
First open the following path:
C:\xampp\phpMyAdmin
Add the following string in config.inc.php file.
$cfg['Servers'][$i]['port'] = '3307';
To configure phpMyAdmin to connect to a different port from the default, edit your config.inc.php
file and add a line like:
$cfg['Servers'][$i]['port'] = '3307';
(of course substituting any port number as needed). You can also see the official documentation.