mysql_user \- Adds or removes a user from a MySQL database.
."------DESCRIPTION
.SHDESCRIPTION
.PP
Adds or removes a user from a MySQL database.
."------OPTIONS
."
."
.SHOPTIONS
.IPname
name of the user (role) to add or remove(required)
.IPlogin_user
The username used to authenticate with
.IPlogin_host
Host running the database (default: localhost)
.IPhost
the 'host' part of the MySQL username (default: localhost)
.IPstate
The database state
.IRChoices:
present,absent. (default: present)
.IPlogin_password
The password used to authenticate with
.IPpassword
set the user's password
.IPpriv
MySQL privileges string in the format: \fCdb.table:priv1,priv2\fR."
."
."------NOTES
.SHNOTES
.PP
Requires the MySQLdb Python package on the remote host. For Ubuntu, this is as easy as apt-get install python-mysqldb.
.PP
Both \fClogin_password\fR and \fClogin_username\fR are required when you are passing credentials. If none are present, the module will attempt to read the credentials from \fC~/.my.cnf\fR, and finally fall back to using the MySQL default login of 'root' with no password.