Не удается запустить MySql, порт 3306 занят
Я пытаюсь запустить MySql из XAMPP (под Windows Vista), но он говорит, что порт 3306 занят.
каков был бы лучший способ проверить, какое приложение использует этот порт и как его освободить?
5 ответов
в командной консоли выполните:
и ищем строку localhost:3306 во втором столбце. Ниже приведено имя приложения, использующего порт.
У меня была та же проблема, и я застрял на этой вещи в течение дня, и я не мог найти идеального ответа нигде. Поэтому я попробовал сам, и это сработало. Это решение предназначено для пользователей Windows. Я использую Windows 7.
моя панель управления xampp отображала ошибку, что порт 3306 занят и используется каким-то файлом (было указано имя).. сказать «filename.de».
теперь выполните следующие шаги:
просто откройте Диспетчер задач и убейте службу MySql.
У меня была эта проблема (небольшое изменение, поскольку я использовал MAMP)
Я обнаружил, что эта проблема связана с установкой MySQL Workbench, MySQL Workbench запустил службу mySQL при загрузке, которая, в свою очередь, остановила MAMP, способную использовать порт.
чтобы исправить это, у меня было 2 варианта,
Это позволило MAMP использовать порт 3306
надеюсь, что это может помочь кому-то!
в моем случае это был javaw.exe, который начинался с порта 3306. Этот exe не вызывает проблем, если я вошел в систему с помощью одного пользователя в моем Windows 10. Но если у меня есть несколько логинов, он запускает этот exe для каждого пользователя и блокирует MySQL для запуска на порту 3306.
переход к диспетчеру задач и убийство этого exe для другого пользователя Исправлена проблема, и MySQl может начаться.
I get the following error while trying to start XAMPP:
5 Answers 5
The log cleraly states that another application is listening on port 3306, so it is not possible to start MySQL since 3306 is the configured port for it (default port for MySQL connections). This application that already listens on por 3306 is another instance of MySQL that’s probably configured to start automatically.
So, mysql is listening 3306 port by default. According to your error,some service has already used it.
may be you have previously installed xampp app and left in before complete installation and then reinstalled it before uninstalling previous one just uninstall privious one or uninstall both and reinstall
Well my friend told me to reinstall xampp in C drive and it did worked but after some time i was facing same problem again so i followed this steps hope it will be helpfull. Open cmd as administrator If there’s nothing important running on port number 3306 kill that process.
Follow this steps: (In case photo have any error) after opening cmd as administer run command
In case you get error even after doing that try to do follow the steps here: I experienced that if we try to stop mysql before apache it is giving error. So when you go to stop process or server stop apache first and then mysql. And don’t shutdown xampp without stopping any server
(I found this by web search and some try and error and it’s working for me at least)
Can’t start MySQL, port 3306 busy
I’m trying to start MySQL from XAMPP (under Windows Vista), but it’s saying that’s port 3306 is busy.
What would be the best way with check what application is using that port and how to free it?
12 Answers 12
Just Open task manager and Kill MySql service.
In a command shell, run:
The first command will output a list that you will need to look through for the line that displays localhost:3306 in the second column. Below this is the application’s name using the port.
The secondary command will find find the exact port you are looking for and looks something like this:
I had the same problem and was stuck on this thing for a day and I couldn’t find a perfect answer anywhere. So I gave it a shot on my own and it worked. This solution is for Windows users. I use Windows 7.
My xampp control panel was displaying an error that port 3306 is busy and in use by some file (name was specified).. say «filename.de».
Now follow the following steps:
If mysql is not starting in xampp, it might be a port conflict issue. Mysql run by default on port 3306. you need to check if another application is occupying that port. use following command to check app occupying a port
if you find an application occupying that port, stop the application and restart xampp. As an alternative, you can go to php.ini file or click configure in the xampp for mysql and change the mysql port to 3307
In my case it was javaw.exe which was starting on port 3306. This exe does not cause problem if I am logged in using single user in my Windows 10. But if I have multiple logins, it starts this exe for each user and blocks MySQL to start on 3306 port.
Going to task manager and killing this exe for the other user fixed the issue and MySQl could start.
As Mentioned By @Segun Emmanuel Run the Following Command:
You will get a list of Applications that are using different PORTS. Press Ctrl + F and write 3306 to find out which Application is using PORT 3306.
Then go to your Xampp Control Panel and start the MySQL service.
So, I went to task manager. There were no process called so. The I went to services and disabled these two:
Now everything works fine.
I had this problem (slight variation as I was using MAMP)
I found this problem was due to having MySQL Workbench installed, MySQL Workbench started the mySQL service on bootup which in turn stopped MAMP being able to use the port.
To fix this I had 2 options,
This then allowed MAMP to use port 3306
I’ve been having trouble for hours on this error. I was trying to run MySQL from XAMPP after quite some time. It gave errors, similar to yours, it said that port 3306 is in use. If you:
This is the solution that worked for me:
I ran MySQL again at now it works.
For this problem, a simpler way on Windows is:-
Disable adapters you do not use.
Pay also attention to the Hyper-V generated network adapter, disable it if you don’t need it. Sometimes it can reserve some ports and commands like netstat will not be able to find it out
This error occurs if you have installed mysql two times. mysql by default uses the port 3306. If you have installed it twice then already there is a mysql at your port number 3306. So you will have to change your port.
If you are using xampp then you can easily change your port. Steps to change port: Step 1: Open your xampp as administrator. Step 2: Click on ‘Config’ at the top right corner of your xampp. Step 3: Click on ‘Service and Port Settings’ and after that change the main port of mysql from 3306 to 3307 and the click on save. Step 4: Then click on ‘config’ which is in front of mysql and open ‘my.ini’ file which will be a text file. Step 5: Now wherever in the text file you see the port number mentioned as 3306 change it to 3307 and then save the file.
After doing this again start your mysql server and it will start running on port 3307.
This worked for me and I hope it will work for anyone else who encounters the same issue.
Не удается запустить MySQL, порт 3306 занят
Я пытаюсь запустить MySQL из XAMPP (под Windows Vista), но он говорит, что порт 3306 занят.
Как лучше всего проверить, какое приложение использует этот порт и как его освободить?
12 ответов
В командной оболочке запустите:
Первая команда выведет список, в котором вам нужно будет просмотреть строку, отображающую localhost:3306 во втором столбце. Ниже указано имя приложения, использующего порт.
Дополнительная команда найдет именно тот порт, который вы ищете, и выглядит примерно так:
Эта ошибка возникает, если вы установили mysql два раза. mysql по умолчанию использует порт 3306. Если вы установили его дважды, то на вашем порту 3306 уже есть mysql. Поэтому вам придется изменить свой порт.
Если вы используете xampp, вы можете легко изменить свой порт. Шаги по изменению порта: Шаг 1. Откройте xampp от имени администратора. Шаг 2: Нажмите «Конфигурация» в правом верхнем углу файла xampp. Шаг 3: Нажмите «Настройки службы и порта», а затем измените основной порт mysql с 3306 на 3307 и нажмите «Сохранить». Шаг 4: Затем нажмите «config», который находится перед mysql, и откройте файл «my.ini», который будет текстовым файлом. Шаг 5: Теперь везде, где в текстовом файле вы видите номер порта, указанный как 3306, измените его на 3307, а затем сохраните файл.
После этого снова запустите сервер mysql, и он начнет работать на порту 3307.
Это сработало для меня, и я надеюсь, что это сработает для всех, кто столкнется с той же проблемой.
Отключите адаптеры, которые вы не используете.
У меня уже несколько часов проблемы с этой ошибкой. Через некоторое время я пытался запустить MySQL из XAMPP. Выдал ошибки, аналогичные вашим, в нем говорилось, что используется порт 3306. Если ты:
Это решение, которое сработало для меня:
Я снова запустил MySQL, теперь он работает.
У меня была эта проблема (небольшая вариация, поскольку я использовал MAMP)
Я обнаружил, что эта проблема связана с установленным MySQL Workbench, MySQL Workbench запускает службу mySQL при загрузке, что, в свою очередь, не позволяет MAMP использовать порт.
Чтобы исправить это, у меня было 2 варианта:
Затем это позволило MAMP использовать порт 3306
Теперь все работает нормально.
Как упоминалось @Segun Emmanuel, выполните следующую команду:
Вы получите список приложений, использующих разные ПОРТЫ. Нажмите Ctrl + F и напишите 3306, чтобы узнать, какое приложение использует ПОРТ 3306.
Затем перейдите в панель управления Xampp и запустите службу MySQL.
В моем случае это был javaw.exe, который запускался на порту 3306. Этот exe не вызывает проблем, если я вошел в систему с использованием одного пользователя в моей Windows 10. Но если у меня несколько входов в систему, он запускает этот exe для каждого пользователя и блокирует MySQL запускается на порту 3306.
Переход к диспетчеру задач и удаление этого exe для другого пользователя устранили проблему, и MySQl мог запуститься.
Если mysql не запускается в xampp, это может быть проблема конфликта порта. Mysql запускается по умолчанию на порту 3306. Вам необходимо проверить, не занимает ли этот порт другое приложение. используйте следующую команду, чтобы проверить приложение, занимающее порт
Если вы обнаружите, что приложение занимает этот порт, остановите приложение и перезапустите xampp. В качестве альтернативы вы можете перейти в файл php.ini или нажать кнопку configure в xampp для mysql и изменить порт mysql на 3307
У меня была та же проблема, и я застрял в ней на день, и я нигде не мог найти идеального ответа. Так что я попробовал это самостоятельно, и это сработало. Это решение для пользователей Windows. Пользуюсь Windows 7.
Теперь выполните следующие шаги:
Просто откройте диспетчер задач и убейте службу MySql.
I’m getting the following errors when I launch XAMPP.
I wasn’t able to find a proper solution on google, so I’m kinda’ hoping someone could help me out with this.
12 Answers 12
Uninstall mysql service through command prompt using the following command.
To delete existing service is not good solution for me, because on port 3306 run MySQL, which need other service. But it is possible to run two MySQL services at one time (one with other name and port). I found the solution here: http://emjaywebdesigns.com/xampp-and-multiple-instances-of-mysql-on-windows/
Here is my modified setting: Edit your “my.ini” file in c:\xampp\mysql\bin\ Change all default 3306 port entries to a new value 3308
edit your “php.ini” in c:\xampp\php and replace 3306 by 3308
Open Windows Services and set Startup Type: Automatic, Start the service
This is how I solved similar problem:
I hope it can help solve your problem too.
Set XAMPP controlpanel to run under Administrator priviledges.
In Win 7 1. First make sure XAMPP control panel is not running 2. SHIFT+right click on XAMPP Control Panel 3. Click on properties 4. In properties select tab ‘Compatibility’ 5. On bottom of the tab under ‘Privilege level’ check the box «Run this program as an administrator» 6. Click OK
this worked for me
Ok so i found out the problem 🙂
ctrl+alt+delete to start task manager, once you get to task manager go to services. find MySQL and right click on it. Then click stop process. That worked for me and i hope it works for you 😀
its because you probaly installed wamp server and uninstall it but wampmysql.exe still running and using the default mysql port go to msconfig under services tab uncheck wampmysqld to deactivate it reboot the computer should work
Ok it’s very easy actually to solve this. most of you who are presented with this problem probably don’t even realize you don’t have the full software yet installed 🙂 I tried looking online with little success except some1 mentioned you need to look for those services running already. Forexample problem with filezilla you look in task manager for filezilla and you stop the process then you click the X in the xampp control pannel to install filezilla and then click run and it should start the service normally showing you a green lite with a check mark.
Same goes for mysql issues.
As for the apache problem, it usualy is a problem with the port being overtaken by skype or some other program, but you can find info how to solve that on the net easily 🙂













