Question: how to change username and password in mysql xampp?
Answer: Start the Apache Server and MySQL instances from the XAMPP control panel.
Now goto to your localhost.
Click on user accounts -> Click on Edit privileges -> You will find an option change password just change password as you want click on go. ... 
Open terminal window (not mac default terminal please check attached image)