How-to Install Latest MySQL Server/Client on Lubuntu 12.04 Precise LTS 32/64bit Easy Guide

March 11th, 2014 by thelinuxevangelist

Install Latest MySQL 5.7+ on Lubuntu 12.04 Precise 32/64bit

The Tutorial Shows You How-to Get Always Freshly Installed the Latest MySQL 5.7.X on Lubuntu 12.04 Precise Pangolin LTS i386/amd64 Linux.

Sometimes You should Easily getting installed the Latest MySQL Version Simply by the Apt Ubuntu Repos but that’s Not Ever True.

So to Get Constantly Installed the Latest MySQL Server/Client Release on Lubuntu You will Need to Download from Oracle the Latest MySQL Community Edition Debian Package.

An Important Step to Take into Account After Installation is to Secure the MySQL Server Installation by the Proper Tool.

Install Latest MySQL on Lubuntu 12.04 Precise LTS - Featured
  1. Download Latest MySQL Server for Ubuntu Linux:

    Get Latest MySQL .deb 32/64bit
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Install Latest MySQL on Lubuntu 12.04 Precise LTS - Open Terminal
  3. Installing MySQL .deb

    gdebi /[path/2]/mysql*debian*.deb
  4. Post-Installation Configuration

    groupadd mysql
    useradd -r -g mysql mysql
    chown -R mysql:mysql /opt/mysql
    /opt/mysql/server*/scripts/mysql_install_db --user=mysql
    chown -R root /opt/mysql
    chown -R mysql /opt/mysql/server*/data
  5. Setting the User PATH

    su [myUser]
    nano .bashrc


    export PATH=$PATH:/opt/mysql/server-[Version]/bin

    Ctrl+X to Save & Exit from nano :)

    Load New PATH:

    source .bashrc
  6. Strongly Recommended MySQL Server Secure SetUp:

    MySQL Secure Server SetUp
  7. Starting the MySQL Server

    sudo su -c "mysqld_safe --user=mysql &"

Tags: , , , , , , , , , , , , ,