I’m trying to set up my local development environment, to which i’m using the ever so easy to install “WAMP” package.
Now i install wamp, run it and start all services, i try connecting to the MySQL server, but i get an error:
SQL Error (2003): Can't connect to MySQL server on 'localhost' (10060)
It doesn’t matter if i try it via a SQL client or PHP, and i’ve tried re-installing a few times.
So i decided to take a look at the mysql.log file after a startup, and this is what i get:
111024 22:57:41 [Note] Plugin 'FEDERATED' is disabled.
111024 22:57:41 InnoDB: The InnoDB memory heap is disabled
111024 22:57:41 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111024 22:57:41 InnoDB: Compressed tables use zlib 1.2.3
111024 22:57:41 InnoDB: Initializing buffer pool, size = 128.0M
111024 22:57:41 InnoDB: Completed initialization of buffer pool
111024 22:57:41 InnoDB: highest supported file format is Barracuda.
111024 22:57:41 InnoDB: Waiting for the background threads to start
111024 22:57:42 InnoDB: 1.1.8 started; log sequence number 1595675
111024 22:57:42 [Note] Event Scheduler: Loaded 0 events
111024 22:57:42 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
The second to last line reading “wampmysqld ready for connections.” indicates it should work, which confuses me…
I have close to no idea what’s wrong, so i hope you guys have any suggestions for what i can try to do in order to get this up and running.
Now i have been troubled with this for quite some time, but i believe I’ve found a solution now.
I’ve done everything from deleting everything i could find containing “mysql” from files to the registry database, even so nothing helped.
I even ended up using a Virtual Machine as a temporary solution, but as it changed IP i had to edit the
my.cnf, which is where i realized mymy.inimissed thebind-addressvalue.The solution turned out to be annoyingly simple, even though i’m not sure exactly what did it.
Anyway, i ended up editing some things in the
my.ini, i edited these rows:I commented out the
log-binline, edited thesocketlines and addedbind-addressso it looked like this:As i said, not sure what did it, but if you have the same problems for some reason, some of this might work for you.