I have a localhost (XAMPP) installed on my computer (Mac). With this installation follows a MySQL server, and I would like to connect to it. But here is what happens:
JDBC::error: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. >>
$Failed
I have checked the following:
Verified root and password, matches those required by the MySQL server.
Hi,
That error is typical when the server does not exist or cannot be reached. Can you mention what other clients (MySQL Workbench etc.) have been able to connect?
Also: if your server is running on a non-standard port (i.e. not 3306), you will have to specify it in the connection URL. The connection command would be something like this:
For some reason the MySQL server did not allow for external connections from other than 127.0.0.1, Restarting both Apache and MySQL Server, the computer prompted me to allow or deny external connections. Allowing this, made Mathematica able to connect!