Package com.mysql.cj.jdbc.admin
Class MiniAdmin
java.lang.Object
com.mysql.cj.jdbc.admin.MiniAdmin
public class MiniAdmin
extends java.lang.Object
Utility functions for admin functionality from Java.
-
Constructor Summary
Constructors Constructor Description MiniAdmin(java.lang.String jdbcUrl)
Create a new MiniAdmin, connecting using the given JDBC URL.MiniAdmin(java.lang.String jdbcUrl, java.util.Properties props)
Create a new MiniAdmin, connecting using the given JDBC URL and propertiesMiniAdmin(java.sql.Connection conn)
Create a new MiniAdmin using the given connection -
Method Summary
Modifier and Type Method Description void
shutdown()
Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.
-
Constructor Details
-
MiniAdmin
public MiniAdmin(java.sql.Connection conn) throws java.sql.SQLExceptionCreate a new MiniAdmin using the given connection- Parameters:
conn
- the existing connection to use.- Throws:
java.sql.SQLException
- if an error occurs
-
MiniAdmin
public MiniAdmin(java.lang.String jdbcUrl) throws java.sql.SQLExceptionCreate a new MiniAdmin, connecting using the given JDBC URL.- Parameters:
jdbcUrl
- the JDBC URL to use- Throws:
java.sql.SQLException
- if an error occurs
-
MiniAdmin
public MiniAdmin(java.lang.String jdbcUrl, java.util.Properties props) throws java.sql.SQLExceptionCreate a new MiniAdmin, connecting using the given JDBC URL and properties- Parameters:
jdbcUrl
- the JDBC URL to useprops
- the properties to use when connecting- Throws:
java.sql.SQLException
- if an error occurs
-
-
Method Details
-
shutdown
public void shutdown() throws java.sql.SQLExceptionShuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.- Throws:
java.sql.SQLException
- if an error occurs
-