I'm trying to convert a MySQL database from MAMP to an RDF graph using D2RQ (on a Mac). I've unpacked d2rq server and I've run the generate mapping tool from terminal like this:
sh generate-mapping -o mapping.ttl -u root -p passw jdbc:mysql://localhost/eurocup
However it gives an error saying it can't connect to the database:
Database connection to jdbc:mysql://localhost/eurocup failed (user: root): 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. (E54)
Can anyone help me out with this? I am very new to RDF and the whole semantic web, and even with the command line. Suggesting another way to convert an SQL database (or dump) to an RDF graph would be welcome to!