Cannot connect to MySQL server on localhost:3306 [FIXED]

Cannot connect to MySQL server on localhost:3306 [FIXED]



sFixing annot connect to MySQL server on localhost:3306
1. Start your XAMP
2. Start Apache
3. Start Sql
If SQL fail to start then check the log file and get sure the problem is related to the 3306 port connection
It will display this error:
[ERROR] Do you already have another mysqld server running on port: 3306 ?
If it is the case then don’t panic.
4. Start CMD as administrator.
Type: netstat –ao
Search for the PID [Process ID] of the port 3306 of the localhost
Once you find it, in our case it was 664 then type in CMD
Taskkill /F /PID 664
Once the “SUCCESS” is shown in the CMD
Restart your SQL.

Enjoy coding,
For more interesting remember to subscribe.
Support us by likes and cookies.

Nguồn: https://kythuatmarketingonline.com/

Xem thêm bài viết: https://kythuatmarketingonline.com/category/cong-nghe

Previous post:

31 thoughts on “Cannot connect to MySQL server on localhost:3306 [FIXED]

  1. Solution for those who are facing this issue:
    ERROR: The process with PID 4816 could not be terminated.

    Reason: Access is denied.

    open cmd rightclick and run as administrator
    it will work noW!!!

  2. When I typed netstat -ao in the command prompt iam getting it is not recognised as internal or external command ….so plz help me

  3. I am getting the below message
    ERROR: The process with PID 6132 could not be terminated.
    Reason: Access is denied.
    Can you please help

Leave a Reply

Your email address will not be published. Required fields are marked *