# HTB SQL Injection Fundamentals

## intro to mysql


djelly@htb[/htb]$ mysql -u root -h docker.hackthebox.eu -P 3306 --skip-ssl -p 

mysql> CREATE DATABASE users;
or
mysql> SHOW DATABASES;

mysql> USE users;

mysql> CREATE TABLE logins (
    ->     id INT,
    ->     username VARCHAR(100),
    ->     password VARCHAR(100),
    ->     date_of_joining DATETIME
    ->     );

SHOW DATABASES;
mysql> SHOW TABLES;

mysql> DESCRIBE <table_name>;
