
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
Installing MySQL on Linux
Let us understand how to install MySQL on Linux −
Linux supports many different solutions to install MySQL. We will see how to install MySQL on Ubuntu 20.02. Following are the steps −
Step1 − Open Terminal and enter the following command −
Press Enter above and wait for download to complete.
Step 2 − Set Password
Use the mysql_secure_installation command and press enter to set password.
Step 3 − Now, enter the MySQL Console using the below command
Step 4 − Display all the databases using the “SHOW DATABASES’ command −
Now, start creating a new database and tables in it.
- Related Articles
- Installing MySQL from source on linux
- Installing MySQL on Unix/Linux Using Generic Binaries
- Installing Python on Linux
- Installing AWS CLI on Linux
- Installing Java on Linux using SSH
- Installing MySQL Using Unbreakable Linux Network (ULN)
- Installing MySQL on macOS
- Installing MySQL on Solaris
- Installing MySQL on FreeBSD
- Installing MySQL on Microsoft Windows
- How To Script "Yes" When Installing Programs on Linux?
- Installing Linux Packages Inside a Docker Container
- Installing and Configuring Net-SNMP for Linux
- Installing MySQL from Source
- Installing Python on Windows

Advertisements