How do I configure XAMPP MySQL to use a different port if port 3306 is unavailable?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I configure XAMPP MySQL to use a different port if port 3306 is unavailable?
Asked by:
83 Viewed 83 Answers

Answer (83)

Best Answer
(287)
Edit the `my.ini` file (located in `xampp/mysql/bin`). Find the line `port = 3306` and change the port number to an available one (e.g., `port = 3307`). Also, update the port number in the XAMPP control panel's MySQL configuration. Remember to restart XAMPP after making these changes.