MySQL runs as a service on your machine. The data base file is not accessed directly by java, but instead via this service.
Java can talk to a database using JDBC.
You might want to try over at
MySQL Forums for information on how to use your database backup.