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 UserServer
addMysqlUser
(AoservConnector conn, Account.Name packageName, User.Name username, Server.Name mysqlServer, DomainName server, Database.Name database, String password) Adds aUser
to the system.static void
addMysqlUser
(SimpleAoservClient aoClient, Account.Name packageName, User.Name username, Server.Name mysqlServer, String server, Database.Name database, String password) Adds aUser
to 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 aUser
to the system.- Parameters:
aoClient
- theSimpleAoservClient
to usepackageName
- the name of thePackage
username
- 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:
IOException
SQLException
-
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 aUser
to the system.- Parameters:
conn
- theAoservConnector
to usepackageName
- the name of thePackage
username
- 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:
IOException
SQLException
-