Write a Java program that reads data from a MySQL database table and prints it in a formatted manner.

To create a Java program that reads data from a MySQL database table and prints it in a formatted manner, you will need to have the following:

1. A MySQL server with a database and table containing some data.
2. The MySQL Connector/J (JDBC driver) added to your project's classpath.

Here is an example of a Java program that connects to a MySQL database, reads data from a table called "employees", and prints it in a formatted manner:

```java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class MySQLReadData {

    public static void main(String[] args) {
        // Database connection details
        String url = "jdbc:mysql://localhost:3306/myDatabase";
        String user = "myUsername";
        String password = "myPassword";

        try {
            // Load the MySQL JDBC driver
            Class.forName("com.mysql.cj.jdbc.Driver");

            // Establish a connection to the database
            Connection conn = DriverManager.getConnection(url, user, password);

            // Create a statement object for executing SQL queries
            Statement stmt = conn.createStatement();

            // Execute a SELECT query on the "employees" table
            ResultSet rs = stmt.executeQuery("SELECT * FROM employees");

            // Print column headers
            System.out.printf("%-10s %-20s %-20s %n", "ID", "First Name", "Last Name");

            // Iterate through the result set and print each row
            while (rs.next()) {
                int id = rs.getInt("id");
                String firstName = rs.getString("first_name");
                String lastName = rs.getString("last_name");

                System.out.printf("%-10d %-20s %-20s %n", id, firstName, lastName);
            }

            // Close resources
            rs.close();
            stmt.close();
            conn.close();

        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
```

Make sure to replace the `url`, `user`, and `password` variables with your own database connection details. Also, ensure that you have added the MySQL Connector/J (JDBC driver) to your project's classpath.

This program will connect to the specified MySQL database, execute a SELECT query on the "employees" table, and print each row in a formatted manner.