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 Database
addMysqlDatabase
(AoservConnector conn, Database.Name name, Server.Name mysqlServer, DomainName server, Account.Name packageName) Adds aDatabase
to aHost
.static void
addMysqlDatabase
(SimpleAoservClient aoClient, Database.Name name, Server.Name mysqlServer, String server, Account.Name packageName) Adds aDatabase
to 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 aDatabase
to aHost
.- Parameters:
aoClient
- theSimpleAoservClient
to 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 thePackage
that owns the new database- Throws:
IOException
SQLException
-
addMysqlDatabase
public static Database addMysqlDatabase(AoservConnector conn, Database.Name name, Server.Name mysqlServer, DomainName server, Account.Name packageName) throws IOException, SQLException Adds aDatabase
to aHost
.- Parameters:
conn
- theAoservConnector
to 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 thePackage
that owns the new database- Returns:
- the new
Database
- Throws:
IOException
SQLException
-