I am using the libmysql C API, the mysql_real_connect
call only works if I use the real IP address of the host - other than localhost
. If I use localhost
as host I get the
following error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (0)
The authentication should be ok, since the used user has all privileges from localhost and any host also.
By the way it is an XAMPP installation on Windows 7.