Class AddMysqlUser
java.lang.Object
com.aoindustries.aoserv.examples.mysql.AddMysqlUser
Adds a
User to the system.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserServeraddMysqlUser(AoservConnector conn, Account.Name packageName, User.Name username, Server.Name mysqlServer, DomainName server, Database.Name database, String password) Adds aUserto the system.static voidaddMysqlUser(SimpleAoservClient aoClient, Account.Name packageName, User.Name username, Server.Name mysqlServer, String server, Database.Name database, String password) Adds aUserto the system.
-
Method Details
-
addMysqlUser
public static void addMysqlUser(SimpleAoservClient aoClient, Account.Name packageName, User.Name username, Server.Name mysqlServer, String server, Database.Name database, String password) throws IOException, SQLException Adds aUserto the system.- Parameters:
aoClient- theSimpleAoservClientto usepackageName- the name of thePackageusername- the new username to allocatemysqlServer- the name of the MySQL instanceserver- the hostname of the server to add the account todatabase- the new user will be granted access to this databasepassword- the password for the new account- Throws:
IOExceptionSQLException
-
addMysqlUser
public static UserServer addMysqlUser(AoservConnector conn, Account.Name packageName, User.Name username, Server.Name mysqlServer, DomainName server, Database.Name database, String password) throws IOException, SQLException Adds aUserto the system.- Parameters:
conn- theAoservConnectorto usepackageName- the name of thePackageusername- the new username to allocatemysqlServer- the name of the MySQL instanceserver- the hostname of the server to add the account todatabase- the new user will be granted access to this databasepassword- the password for the new account- Returns:
- the new
UserServer - Throws:
IOExceptionSQLException
-
