List of usage examples for io.vertx.mysqlclient MySQLPool pool
static MySQLPool pool(String connectionUri)
From source file:examples.MySQLClientExamples.java
public void configureFromUri(Vertx vertx) { // Connection URI String connectionUri = "mysql://dbuser:secretpassword@database.server.com:3211/mydb"; // Create the pool from the connection URI MySQLPool pool = MySQLPool.pool(connectionUri); // Create the connection from the connection URI MySQLConnection.connect(vertx, connectionUri, res -> { // Handling your connection });// w w w . j av a2s. c om }