MariaDB starting with 10.5.2
From MariaDB 10.5.2,
mariadb-access is the name of the tool, with
mysqlaccess a symlink .
mysqlaccess is a tool for checking access privileges, developed by Yves Carlier.
It checks the access privileges for a host name, user name, and database combination. Note that mysqlaccess checks access using only the user, db, and host tables. It does not check table, column, or routine privileges specified in the tables_priv, columns_priv, or procs_priv tables.
mysqlaccess [host [user [db]]] OPTIONS
If your MariaDB distribution is installed in some non-standard location, you must change the location where mysqlaccess expects to find the mysql client. Edit the mysqlaccess script at approximately line 18. Search for a line that looks like this: <<code> $MYSQL = ´/usr/local/bin/mysql´; # path to mysql executable <</code>> Change the path to reflect the location where mysql actually is stored on your system. If you do not do this, a Broken pipe error will occur when you run mysqlaccess.
|Displayhelp and exit.|
|Username for logging in to the db.|
|Password to use for user. If ommitted, |
|Name or IP of the host.|
|Name of the database.|
|Connect as superuser.|
|Password for superuser.|
|Remote server to connect to.|
|Connect to a very old MySQL servers (before version 3.21) that does not know how to handle full WHERE clauses.|
|Single-line tabular report.|
|Report in table-format.|
|Print suggestions/ideas for future releases.|
|Some examples of how to run `mysqlaccess'.|
|Enter debug level N (0..3).|
|Reload temporary grant-tables from original ones.|
|Show differences in privileges after making changes in (temporary) grant-tables.|
|Copy grant-rules from temporary tables to grant-tables (the grant tables must be flushed after, for example with |
|Undo the last changes to the grant-tables.|
At least the user (
-u) and the database (
-d) must be given, even with wildcards. If no host is provided, `localhost' is assumed. Wildcards (*,?,%,_) are allowed for host, user and db, but be sure to escape them from your shell!! (ie type \* or '*')