Can't connect to MySQL server on 'localhost' (10061), but can via PHP
Fresh3 days ago
Mar 15, 202635845 viewsConfidence Score0%
0%
Problem
With WAMP 2.2 serving Apache 2.2.21, MySQL 5.5.16 and PHP 5.3.8 on my Windows XP development machine, I can connect and manage my database via phpMyAdmin or any locally hosted PHP script using a DNS like "mysql:host=localhost;dbname=kwamjing" When I try to connect to MySQL via a management tool lik…
Error Output
Error 2003 Can't connect to MySQL server on 'localhost' (10061)
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Can't connect to MySQL server on 'localhost' (10061), but can via PHP
Low Risk
As you are only listening on ipv6, php must have figured this out and is making an ipv6 connection. HeidiSQL perhaps doesn't support ipv6 and is attempting to connect to mysql on ipv4 and is failing. If you change your in the mysqld section to it sh…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix