SQL (Structured Query Language) is a programming language used to manage and manipulate relational databases. It is widely employed for performing queries, insertions, updates, and deletions of data in a database, as well as for defining and modifying the structure of tables and relationships within the database.
For Linux Users!
I consider MySQL to be the best for learning, so I will proceed with it for this study.
- Update Packages
sudo apt update && sudo apt upgrade -y
- Install MySQL Server
sudo apt install mysql-server
- Check MySQL Status
sudo systemctl status mysql
-
Start, Stop, and Restart MySQL (Optional)
- To start MySQL
sudo systemctl start mysql
- To stop MySQL
sudo systemctl stop mysql
- To restart MySQL
sudo systemctl restart mysql
-
Access MySQL
sudo mysql -u root -p