How to install mysql in Linux - Ubuntu

Published: 26 July 2020
on channel: ITPro
39k
651

In this Linux how to video you will learn how to install MySQL Server on a Linux-based system, specifically Ubuntu. You will see how to install the MySQL package and perform initial security hardening to ensure your server is securely deployed. The method used in this video applies to most major Linux distributions including Debian, Ubuntu, Linux Mint, Red Hat, CentOS, and Fedora among others.

Here is a summary of the commands used in the demonstration:

Install MySQL for Debian-based systems:
sudo apt install mysql-server

Install MySQL for Red Hat, CentOS, Fedora:
sudo apt install mysql-server

To run secure script (IMPORTANT):
sudo mysql_secure_installation

To start MySQL now:
sudo systemctl enable --now mysql.service

To check is MySQL is running:
systemctl status mysql.service

To allow MySQL through firewall:
sudo ufw enable
sudo ufw allow mysql

Subscribe to get the latest videos:

Start your Linux training free!

Connect with Don Pezet:
Twitter:
LinkedIn:
Blog: blog.itpro.tv

Enjoying this show? Get access to more online IT skills and certification training from ITProTV. Home of binge-worthy learning, ITProTV offers teams and individuals 5800+ hours of engaging & effective on-demand video training for the latest technology skills. Watch live or on-demand daily. Start learning free at ITProTV:


Watch video How to install mysql in Linux - Ubuntu online without registration, duration 05 minute 58 second in high hd quality. This video was added by user ITPro 26 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 39 thousand once and liked it 651 people.