It is a SQL relational database management system developed and supported by Oracle
MariaDB
It is an Open Source Fork of MySQL
Ports
TCP
3306
This port is used to manage communications between MySQL Clients and the Database Server
It allows scripts, tools or database connectors (PHP, Pythonβ¦) to communicate with the MySQL Server
Default Databases
Mysql
It is the system database that contains tables that store information required by the MySQL Server
Information_schema
It provides access to database metadata
Performance_schema
It 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 [[#Default Databases#Performance_schema|Performance_schema]]
Connection
MySQL CLI Client
Local MySQL Server
mysql --user=<USERNAME> --password='<PASSWORD>' # Long Formatmysql -u <USERNAME> -p'<PASSWORD>' # Short Format
To connect to a specific database β
--database Option
mysql --user=<USERNAME> --password='<PASSWORD>' --database=<DB_NAME> # Long Formatmysql -u <USERNAME> -p'<PASSWORD>' -D <DB_NAME> # Short Format
Remote MySQL Server
mysql --user=<USERNAME> --password='<PASSWORD>' --host=<TARGET> # Long Formatmysql -u <USERNAME> -p'<PASSWORD>' -h <TARGET> # Short Format
Specific Database Connection β
--database Option
mysql --user=<USERNAME> --password='<PASSWORD>' --host=<TARGET> --database=<DB_NAME> # Long Formatmysql -u <USERNAME> -p'<PASSWORD>' -h <TARGET> -D <DB_NAME> # Short Format