1Step 1: First, reach in the folder where you have installed your Xampp Software.
2
3Step 2: After that, go to the destination file – mysql/bin/my.ini (The ‘my‘ file with extension of Configuration Settings)
4
5Step 3: In that file, you’ll be seeing some lines of code like this:
6
7# The following options will be passed to all MySQL clients
8[client]
9# password = your_password
10port = 3306
11socket = "xampp / mysql / mysql.sock"
12Just change the port to 3306 ---> 3308 instead of 3306.
13
14Step 4: Just below, you would find these lines of code:
15
16# The MySQL server
17[mysqld]
18port= 3306
19socket = "xampp / mysql / mysql.sock"
20Just like before, here also update the port attribute to 3306 ---> 3308 instead of 3306.
21
22Step 5: And that’s all! Just close off MySQL and Start it again to see the new port working.