Each of the input parameters is optional and will be supplied in accordance with how MySQL's 'mysql' database has been configured.
The 'mysql' database controls who can connect to a particular database and from where.