Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Install MySQL

ZeroC0D3 Team edited this page Jan 20, 2018 · 1 revision

Installation MySQL

Install MySQL for Ubuntu version 16.04

Setup Installation

  • Create script install_mysql.sh

  • Add this line:

#!/usr/bin/env sh

##### STOP MYSQL SERVICE (if exist) #####
ps aux | grep -i mongod | awk {'print $2'} | sudo xargs kill -9

sudo apt-get -y update
sudo apt-get -y install mysql-server

##### CONFIGURE SECURITY MYSQL #####
mysql_secure_installation

##### START MYSQL SERVICE #####
sudo /etc/init.d/mysql restart
# sudo service mysql restart
  • Change executable script
chmod +x install_mysql.sh

Running Installation

sh ./install_mysql.sh
Clone this wiki locally