Installing MySql on Ubuntu 14.04

TBH, installing mysql does not need that much of work, but it will not work if you try to install it on a small VPS ( 512MB) so I will let you know what to do.

Creating Swap

To be able to use mysql on a small VPS you will need to create a swap for it, you are free to use the following script, which I have created.

Its not 100% perfect, but it worked

create a shell file and call it swap.sh

execute the command

and then remember to edit fastab file to add the swap to it and you are done.

Installing MySql

You can install it like any other linux package using APT package manager .

after the script finish, you can try to secure it by executing the following command

to access mysql from the command line

and thats it.

Filed under: Linux, MySQL

No comment yet, add your voice below!


Add a Comment

Your email address will not be published. Required fields are marked *

Comment *

Name *
Email *
Website

15 − 12 =