Java, MySQL: Is there a way to embed a MySQL server with a Java program?
问题 One thing I love about .NET is the ability to have a database file along with the project. I know that using a SQLite database, this can be done, but did someone achieve this with a MySQL database backend? So for instance, if I run a java program, it should be able to start its own mini MySQL server and manipulate data. So essentially, I want the same flow as with a SQLite but I need the power of MySQL. 回答1: A quick search shows this: MySQL Connector/MXJ — for embedding MySQL server in Java