Ask Your Question

Why can't I connect with MySQL native driver [closed]

asked 2014-08-18 10:54:48 +0200

grahamh gravatar image

updated 2016-03-02 12:21:11 +0200

Alex Kemp gravatar image

I've been using the JDBC driver to connect to MySQL for years on localhost and through LAN/WAN. Decided to try the Native driver 1.0.2 for Windows with the same connection details to speed things up but it fails with "Can't connect to MySQL server on 'localhost' (10061)", SQL Status: HY000, Error code: 2003.

Any pointers for troubleshooting this, please?

Win7 64bit, LO4.2.6.2, MySQL5.1

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-02 12:21:37.349283

1 Answer

Sort by » oldest newest most voted

answered 2014-08-18 11:09:00 +0200

grahamh gravatar image

Got it. It seems the driver does not resolve host names. Changing localhost to does the trick.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-08-18 10:54:48 +0200

Seen: 508 times

Last updated: Aug 18 '14