in reply to OT: MySQL fails to connect

Your right, this is off topic :)

Read the documentation here by the software vendor.
Before asking a database related question ... may also be worth a read if you have not done so already.

Hope this helps.

Martin