static HikariConfig config = new HikariConfig(); config.setJdbcUrl("jdbc:mysql://localhost:3306/mydb"); config.setUsername("root"); config.setPassword("password"); config.setMaximumPoolSize(10); dataSource = new HikariDataSource(config);
If you truly cannot afford it, use the PDF as a temporary study aid, but plan to buy the book or a newer equivalent later.