Class AddMysqlDatabase
java.lang.Object
com.aoindustries.aoserv.examples.mysql.AddMysqlDatabase
Adds a new
Database to the system.- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseaddMysqlDatabase(AoservConnector conn, Database.Name name, Server.Name mysqlServer, DomainName server, Account.Name packageName) Adds aDatabaseto aHost.static voidaddMysqlDatabase(SimpleAoservClient aoClient, Database.Name name, Server.Name mysqlServer, String server, Account.Name packageName) Adds aDatabaseto aHost.
-
Method Details
-
addMysqlDatabase
public static void addMysqlDatabase(SimpleAoservClient aoClient, Database.Name name, Server.Name mysqlServer, String server, Account.Name packageName) throws IOException, SQLException Adds aDatabaseto aHost.- Parameters:
aoClient- theSimpleAoservClientto usename- the name of the database to addmysqlServer- the name of the MySQL instanceserver- the hostname of the server to add the database topackageName- the name of thePackagethat owns the new database- Throws:
IOExceptionSQLException
-
addMysqlDatabase
public static Database addMysqlDatabase(AoservConnector conn, Database.Name name, Server.Name mysqlServer, DomainName server, Account.Name packageName) throws IOException, SQLException Adds aDatabaseto aHost.- Parameters:
conn- theAoservConnectorto usename- the name of the database to addmysqlServer- the name of the MySQL instanceserver- the hostname of the server to add the database topackageName- the name of thePackagethat owns the new database- Returns:
- the new
Database - Throws:
IOExceptionSQLException
-
