MySQL

MySQL default system schemas/databases:

  • mysql - is the system database that contains tables that store information required by the MySQL server

  • information_schema - provides access to database metadata

  • performance_schema - is a feature for monitoring MySQL Server execution at a low level

  • sys - a set of objects that helps DBAs and developers interpret data collected by the Performance Schema

mysql -h 10.10.97.109 -u root -p

mysql -h 10.10.97.109 -u root -pPassword123
show databases;

Tryhackme - network services 2

mysql -u root -p
  • If you're already in the box

SHOW GRANTS FOR 'u1'@'localhost';

https://dev.mysql.com/doc/refman/8.0/en/show-grants.html
mysql -u root -h docker.hackthebox.eu -P 3306 -p 
show databases;
use "database name";

show tables;
SELECT * FROM table_name;

Describe table_name;

Last updated