---
title: "Debian install mytop for monitoring mysql"
date: "2012-02-06"
modified: "2013-04-16"
path: "/78-debian-install-mytop-for-monitoring-mysql.html"
section: "/ramblings"
aliases:
  - "/78"
  - "/78-debian-install-mytop-for-monitoring-mysql"
  - "/78.html"
  - "/ramblings/78-debian-install-mytop-for-monitoring-mysql.html"
---

This is very simple but ideally requires two steps:

```
apt-get install mytop
```

And then create a new file called `nano ~/.mytop` which should contain the following snippet, adding your password where defined below:

```
user=root
pass=
host=localhost
db=
delay=5
port=3306
socket=
batchmode=0
header=1
color=1
idle=1
```

Now when you run `mytop` on the command line it should start showing something like:

![](/images/mysql-mytop.png)
