Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mysql port already in use

Tags:

mysql

180718 12:43:04 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
180718 12:43:04 [ERROR] Do you already have another mysqld server running on port: 3306 ?
180718 12:43:04 [ERROR] Aborting

is there any solution for it? Mysql is running on windows based server. Please give the best solution..

like image 659
Alok Tiwari Avatar asked Jul 22 '18 16:07

Alok Tiwari


People also ask

How do I stop MySQL port 3306?

Press Ctrl + F and write 3306 to find out which Application is using PORT 3306. After this, Go to Task Manager via Search Bar or by pressing CTRL + ALT + DEL . Then Under the Background Processes, find out mysqld.exe , right-click on it and you will find an option to close it, namely " End Task ".

What port to use if 3306 is being used?

For example if the classic MySQL protocol port is the default value of 3306 then the X Protocol port is 33060.


1 Answers

Either a second instance of MySQL or another service is running on port 3306.

You can either stop the service which is running on port 3306 by

getting the process id of that service:

netstat -a -n -o | find "3306"

and then killing that process (e.g. for process id 1234):

taskkill /pid 1234 /f

or run MySQL on a different port.

like image 105
Giorgos Myrianthous Avatar answered Sep 19 '22 16:09

Giorgos Myrianthous