how to setup mysql on ubuntu code example

Example 1: install mysql ubuntu

sudo apt install mysql-server

Example 2: install mysql ubuntu 18.04

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Example 3: start mysql server linux terminal

sudo /etc/init.d/mysql start
or 
systemctl start mysql.service

Example 4: setup mysql ubuntu

sudo apt install mysql-server
sudo mysql_secure_installation utility

Example 5: how to enable mysql authentication on ubuntu 18.04

//follow this blog

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04

Tags:

Php Example