Step 1 – Prerequisites
Login to your Debian 8 system using shell access. For remote systems connect with SSH. The Windows desktop users can use Putty any other SSH client to connect their server. Run below commands to upgrade the current packages to the latest version.
Step 2 – Setup MySQL PPA on Debian 8
Download the MySQL PPA configuration package from the official website of MySQL. The below commands will do the MySQL PPA setup on Debian 8 automatically. With the installation of above package, this will prompt to select MySQL version to install on your system. Select the MySQL 5.7 or 5.6 to install on your system.
Step 3 – Install MySQL on Debian 8
You are ready now for the MySQL installation on a Debian 8 Jessie machine. Execute the following commands to install MySQL on a Debian 8 machine. The installation process will prompt for the root password to set as default. Input a secure password and same to confirm password window. This will be MySQL root user password required to log in to MySQL server.
Step 4 – Secure MySQL Installation
Execute the below command on your system to make security changes on your Database server. This will prompt some questions. The do the high security provide all answers to yes.
Step 5 – Connect MySQL
Your system is ready with the MySQL database server. Simply connect to the MySQL using command line client. This will require the root password configured in step 3 to connect database server.