MARKETPLACE
MySQL
A widely-used open-source relational database management system known for speed, reliability, and ease of use. It’s a core component of the LAMP stack for web development.
MySQL
Ubuntu24.04/22.04
Description
sudo apt update
sudo apt install mysql-server
sudo systemctl restart mysql
sudo systemctl enable mysql
sudo systemctl status mysql
sudo mysql
exit;
(Optional)Create User and Database & Run Security Script
sudo mysql_secure_installation
You’ll be prompted to:
- Set a root password (if not already set)
- Remove anonymous users
- Disallow remote root login
- Remove test database
- Reload privilege tables
Tip: Press Y to accept recommended security settings.
Mysql login screen
With an admin password, you can now access your mysql instance, run command. sudo mysql -u root –p
Username: root
Password: password