[3306] Mysql
Last updated
Last updated
Defaul file configuration: etc/mysql/mysql.conf.d/mysqld.cnf
Tool: dbeaver GUI
To install using a Debian package we can download the release .deb package from and execute the following command:
Intrusionz3r0X@htb[/htb]**$** sudo dpkg -i dbeaver-<version>.deb
]
Intrusionz3r0X@htb[/htb]**$** dbeaver &
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
Command
Description
mysql -u <user> -p<password> -h <IP address>
Connect to the MySQL server. There should not be a space between the '-p' flag, and the password.
show databases;
Show all databases.
use <database>;
Select one of the existing databases.
show tables;
Show all available tables in the selected database.
show columns from <table>;
Show all columns in the selected database.
select * from <table>;
Show everything in the desired table.
select * from <table> where <column> = "<string>";
Search for needed string
in the desired table.