↑ ↓ select, Enter open, Esc close

Show a quick status of the database server

root@server
mysqladmin version

Prints the server version, connection method, uptime since the last start and a status line with threads, queries, slow queries and open tables. A quick overview of whether the service is running and how heavily it is loaded. A short uptime reveals unexpected restarts.

Note: On Plesk servers, call it with -u admin and MYSQL_PWD from /etc/psa/.psa.shadow.

Also searched as

  • show mysql version
  • is mariadb running
  • check mysql uptime

Related one-liners

All in MySQL and MariaDB

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.