Question: how to change localhost username and password in xampp?
Answer: Open localhost. Click phpMyAdmin. Click User accounts. Look for the row having User name: root & Host name: localhost. You can see that there is No for Password. Click Edit Privileges. ... 
Now go to XAMPP folder. Click sub folder phpMyAdmin. Look for the file config. inc. php. Right click on config.