MySqlDbaServices
Provides DBA services for MySql.
- Namespace:
- Inetdev.Data.MySql.Dba
- Type:
- Class
- Public:
- Yes
- Protected:
- No
- Sealed:
- Yes
- Abstract:
- No
- Inherits from:
- System.Object
Constructors
MySqlDbaServices
Default constructor
- Signature:
public Void MySqlDbaServices()
Properties
DataAccessAPI
Database comunication API.
- Signature:
public IDbAccess DataAccessAPI { get; set; }
Methods
ChangeUserPasswordAsync
Changes a user password.
- Signature:
public Task ChangeUserPasswordAsync(user)
Parameters
Name |
Type |
Summary |
user |
User |
A User to change it's password. |
Exceptions
CreateSchemaAsync
Creates a schema named name.
- Signature:
public Task CreateSchemaAsync(name)
Parameters
Name |
Type |
Summary |
name |
String |
Name of the schema to create. |
Exceptions
CreateUserAsync
Creates a user to connect to the database.
- Signature:
public Task CreateUserAsync(user)
Parameters
Name |
Type |
Summary |
user |
User |
A User to be created. |
Exceptions
DropSchemaAsync
Creates a schema named name.
- Signature:
public Task DropSchemaAsync(name)
Parameters
Name |
Type |
Summary |
name |
String |
Name of the schema to create. |
Exceptions
DropUserAsync
Drops a user.
- Signature:
public Task DropUserAsync(name)
Parameters
Name |
Type |
Summary |
name |
String |
The name of the user to drop. |
Exceptions
ExistsUserAsync
Checks if a user named name exists.
- Signature:
public Task<Boolean> ExistsUserAsync(name)
Returns
true is the user exists, otherwise false.
Parameters
Name |
Type |
Summary |
name |
String |
Name of the user to check. |
Exceptions
GrantUserAccessToSchemaAsync
Grants the user all access to the specified schema.
- Signature:
public Task GrantUserAccessToSchemaAsync(user, schema)
Parameters
Name |
Type |
Summary |
user |
String |
User name to grant access to. |
schema |
String |
Schema to grant to the user. |
Exceptions