本文整理汇总了Java中com.mysql.jdbc.MiniAdmin类的典型用法代码示例。如果您正苦于以下问题:Java MiniAdmin类的具体用法?Java MiniAdmin怎么用?Java MiniAdmin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MiniAdmin类属于com.mysql.jdbc包,在下文中一共展示了MiniAdmin类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testShutdown
import com.mysql.jdbc.MiniAdmin; //导入依赖的package包/类
/**
* Tests whether or not you can shutdown the server with MiniAdmin.
*
* Only runs if SHUTDOWN_PROP is defined.
*
* @throws Exception
* if an error occurs
*/
public void testShutdown() throws Exception {
if (runTestIfSysPropDefined(SHUTDOWN_PROP)) {
new MiniAdmin(this.conn).shutdown();
}
}
示例2: testUrlConstructor
import com.mysql.jdbc.MiniAdmin; //导入依赖的package包/类
/**
* Tests whether or not you can construct a MiniAdmin with a JDBC URL.
*
* @throws Exception
* if an error occurs
*/
public void testUrlConstructor() throws Exception {
new MiniAdmin(dbUrl);
}
示例3: testShutdown
import com.mysql.jdbc.MiniAdmin; //导入依赖的package包/类
/**
* Tests whether or not you can shutdown the server with MiniAdmin.
*
* Only runs if SHUTDOWN_PROP is defined.
*
* @throws Exception
* if an error occurs
*/
public void testShutdown() throws Exception {
if (runTestIfSysPropDefined(SHUTDOWN_PROP)) {
new MiniAdmin(this.conn).shutdown();
}
}
示例4: testUrlConstructor
import com.mysql.jdbc.MiniAdmin; //导入依赖的package包/类
/**
* Tests whether or not you can construct a MiniAdmin with a JDBC URL.
*
* @throws Exception
* if an error occurs
*/
public void testUrlConstructor() throws Exception {
new MiniAdmin(dbUrl);
}