Mytop: Difference between revisions

From DWIKI
Line 16: Line 16:
  * hostname you specified "localhost" (default is "localhost")
  * hostname you specified "localhost" (default is "localhost")
  * port you specified "3306" (default is 3306)
  * port you specified "3306" (default is 3306)
Someone needs spanking. Simple fix in .mytop.cnf:
Someone needs spanking. Simple fix in .mytop
  host=127.0.0.1
  host=127.0.0.1
(this is not a joke)
(this is not a joke)

Revision as of 14:13, 12 November 2022

MySQL top

Configuration

In ~/.mytop

user=foo
# make it prompt?
# pass=s3cr37
host=localhost

FAQ

Unknown database 'test'

That's the default database, add to ~/.mytop

db=mysql

Connection error: port cannot be specified when host is localhost or embedded

* hostname you specified "localhost" (default is "localhost")
* port you specified "3306" (default is 3306)

Someone needs spanking. Simple fix in .mytop

host=127.0.0.1

(this is not a joke)