Class MiniAdmin
java.lang.Object
com.mysql.jdbc.MiniAdmin
Utility functions for admin functionality from Java.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new MiniAdmin, connecting using the given JDBC URL.MiniAdmin(String jdbcUrl, Properties props) Create a new MiniAdmin, connecting using the given JDBC URL and propertiesMiniAdmin(Connection conn) Create a new MiniAdmin using the given connection -
Method Summary
Modifier and TypeMethodDescriptionvoidshutdown()Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.
-
Constructor Details
-
MiniAdmin
Create a new MiniAdmin using the given connection- Parameters:
conn- the existing connection to use.- Throws:
SQLException- if an error occurs
-
MiniAdmin
Create a new MiniAdmin, connecting using the given JDBC URL.- Parameters:
jdbcUrl- the JDBC URL to use- Throws:
SQLException- if an error occurs
-
MiniAdmin
Create 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:
SQLException- if an error occurs
-
-
Method Details
-
shutdown
Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.- Throws:
SQLException- if an error occurs
-