MARIADB-ACCESS(1)

πŸ“¦
version 13.0.2 Β· 7 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ’– MARIADB-ACCESS(1) πŸ’–

okay bestie, so this is a page from the MariaDB Database System manual, and it's literally about the mariadb-access client. strap in πŸ’…


✨ NAME ✨

mariadb-access β€” the client for checking access privileges, and yes, the tea is that mariadb-access is now a symlink to mariadb-access. no I'm not joking, that's what it says. iconic behavior honestly.


🌸 SYNOPSIS 🌸

mariadb-access [host_name [user_name [db_name]]] [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so mariadb-access is a diagnostic tool written by Yves Carlier, and what it does is check the access privileges for a host name, user name, and database combo. slay.

⚠️ important vibe check: mariadb-access 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. so don't come for it about those, it's not its job bestie 😭

invoke mariadb-access like this:

shell> mariadb-access [host_name [user_name [db_name]]] [options]

mariadb-access supports the following options. all of them. every single one. we're not skipping any πŸ‘‘

  • --help, -? β€” display a help message and exit. your lil "what do I do" button 🫢
  • --brief, -b β€” generate reports in single-line tabular format. compact queen ✨
  • --commit β€” copy the new access privileges from the temporary tables to the original grant tables. lowkey crucial: the grant tables must be flushed for the new privileges to take effect. (for example, execute a mariadb-admin reload command.) no flush, no effect, no cap 🚨
  • --copy β€” reload the temporary grant tables from original ones.
  • --db=db_name, -d db_name β€” specify the database name.
  • --debug=N β€” specify the debug level. N can be an integer from 0 to 3.
  • --host=host_name, -h host_name β€” the host name to use in the access privileges.
  • --howto β€” display some examples that show how to use mariadb-access. tutorial era πŸŽ€
  • --old_server β€” connect to a very old MySQL server (before MySQL 3.21) that does not know how to handle full WHERE clauses. grandma server support fr fr πŸ‘΅
  • --password[=password], -p[password] β€” the password to use when connecting to the server. if you omit the password value following the --password or -p option on the command line, mariadb-access prompts for one.
🚨 specifying a password on the command line should be considered insecure. see Section 5.3.2.2, "End-User Guidelines for Password Security".
  • --plan β€” display suggestions and ideas for future releases. manifesting ✨
  • --preview β€” show the privilege differences after making changes to the temporary grant tables.
  • --relnotes β€” display the release notes.
  • --rhost=host_name, -H host_name β€” connect to the MariaDB server on the given host.
  • --rollback β€” undo the most recent changes to the temporary grant tables. ctrl+z energy πŸ’…
  • --spassword[=password], -P[password] β€” the password to use when connecting to the server as the superuser. if you omit the password value following the --spassword or -p option on the command line, mariadb-access prompts for one.
🚨 specifying a password on the command line should be considered insecure. see Section 5.3.2.2, "End-User Guidelines for Password Security".
  • --superuser=user_name, -U user_name β€” specify the user name for connecting as the superuser. main character energy πŸ‘‘
  • --table, -t β€” generate reports in table format.
  • --user=user_name, -u user_name β€” the user name to use in the access privileges.
  • --version, -v β€” display version information and exit.

okay so here's the part where it gets a lil DIY πŸ”§ if your MariaDB distribution is installed in some non-standard location, you must change the location where mariadb-access expects to find the mariadb client. edit the mariadb-access script at approximately line 18. search for a line that looks like this:

$MYSQL     = '/usr/local/bin/mariadb';    # path to mariadb executable

change the path to reflect the location where mariadb actually is stored on your system. and if you don't do this? a Broken pipe error will occur when you run mariadb-access. so like, do it πŸ™ˆ


Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2025 MariaDB Foundation

This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.


🌈 SEE ALSO 🌈

For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/


⭐ AUTHOR ⭐

MariaDB Foundation (http://www.mariadb.org/).


and that's the whole page bestie, no notes πŸ’… this was MariaDB 11.8, dated 5 March 2025, and yeah the header said MARIADB-ACCESS(1) up top and the footer said it again at the bottom, so now you know the whole lore πŸ¦‹ mwah, go check some privileges πŸŽ€

πŸ“¦ where this page comes from
  • alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
  • arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
  • arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
  • centos-stream 10: mariadb11.8 3:11.8.8-1.el10 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • centos-stream 10: mariadb11.8-client-utils 3:11.8.8-1.el10 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • centos-stream 9: mariadb 3:11.8.8-1.module_el9+1370+ec5ecc2e Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • centos-stream 9: mariadb-client-utils 3:11.8.8-1.module_el9+1370+ec5ecc2e Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • debian trixie: mariadb-client 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
  • fedora 43: mariadb11.8 3:11.8.8-1.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 43: mariadb11.8-client-utils 3:11.8.8-1.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 43: mariadb12.3 3:12.3.2-2.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 43: mariadb12.3-client-utils 3:12.3.2-2.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb 3:11.8.6-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb 3:11.8.8-3.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb-client-utils 3:11.8.6-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb-client-utils 3:11.8.8-3.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb12.3 3:12.3.2-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb12.3-client-utils 3:12.3.2-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • nixpkgs unstable: mariadb-server 11.8.8
  • opensuse-leap 16.0: mariadb-tools 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
  • opensuse-leap 16.0: mariadb-tools 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
  • opensuse-leap 16.0: mariadb-tools 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
  • opensuse-leap 16.0: mariadb-tools 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
  • ubuntu resolute: mariadb-client 1:11.8.6-5 Β· GPL-2.0-only
  • ubuntu resolute: mariadb-client 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
  • ubuntu stonking: mariadb-client 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms