One minute
Mariadb Basic Tutorial
Start mysql/maridb
sudo mysql -u root -p
or
sudo mariadb -u root -p
both of them will start maridb because we have made mysql as alias of maridb
Create a database
Use the database
Create a table
Show the table :
+--------------------+
| Tables_in_Students |
+--------------------+
| information |
+--------------------+
1 row in set (0.002 sec)
Create another table:
Entering Values into table
Make sure the order of the values is the same as order as the columns
Insert Data only in specified columns
show table:
Output:
+-------------+------------+------------+
| courseName | teacher | department |
+-------------+------------+------------+
| Probability | VB | Maths |
| OOP | Bharti Mam | NULL |
+-------------+------------+------------+
2 rows in set (0.001 sec)
Exit mariaDB
Share: