Clear screen at MariaDB CLI

Published at 16 Oct 2024

When you’re inside the MariaDB CLI, trying to clear the console using the clear command won’t work.

To clear the console, you need to add the \! symbol before the clear command.

The \! symbol can be used in MariaDB CLI to execute a system shell command.

\! clear

Alternatively, you can also use the CTRL + L command to clear the screen.