Top Description Fields Constructors Methods
com.mysql.cj.jdbc.admin

public Class MiniAdmin

extends Object
Class Inheritance
Imports
java.sql.SQLException, java.util.Properties, com.mysql.cj.Messages, com.mysql.cj.exceptions.MysqlErrorNumbers, com.mysql.cj.jdbc.Driver, .JdbcConnection, com.mysql.cj.jdbc.exceptions.SQLError

Utility functions for admin functionality from Java.

Field Summary

Modifier and TypeField and Description
private JdbcConnection

Constructor Summary

AccessConstructor and Description
public
MiniAdmin(Connection
the existing connection to use.
conn
)

Create a new MiniAdmin using the given connection

public
MiniAdmin(String
the JDBC URL to use
jdbcUrl
)

Create a new MiniAdmin, connecting using the given JDBC URL.

public
MiniAdmin(String
the JDBC URL to use
jdbcUrl
,
Properties
the properties to use when connecting
props
)

Create a new MiniAdmin, connecting using the given JDBC URL and properties

Method Summary

Modifier and TypeMethod and Description
public void
shutdown()

Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connback to summary
private JdbcConnection conn

Constructor Detail

MiniAdminback to summary
public MiniAdmin(Connection conn) throws SQLException

Create a new MiniAdmin using the given connection

Parameters
conn:Connection

the existing connection to use.

Exceptions
SQLException:
if an error occurs
MiniAdminback to summary
public MiniAdmin(String jdbcUrl) throws SQLException

Create a new MiniAdmin, connecting using the given JDBC URL.

Parameters
jdbcUrl:String

the JDBC URL to use

Exceptions
SQLException:
if an error occurs
MiniAdminback to summary
public MiniAdmin(String jdbcUrl, Properties props) throws SQLException

Create a new MiniAdmin, connecting using the given JDBC URL and properties

Parameters
jdbcUrl:String

the JDBC URL to use

props:Properties

the properties to use when connecting

Exceptions
SQLException:
if an error occurs

Method Detail

shutdownback to summary
public void shutdown() throws SQLException

Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.

Exceptions
SQLException:
if an error occurs