1 min read

Install MySQL

April 7, 2014

This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/9392658.


MySQL is the world’s most popular open source database system.



Install MySQL server

sudo apt-get install mysql-server

Set the mysql root user password during the installation

Install the default MySQL databases

sudo mysql_install_db

Run the finisher script and respond except for the first prompt with yes in order to get a secure MySQL installation

sudo /usr/bin/mysql_secure_installation

Connect to your new MySQL server

mysql -uroot -p

Enter the root password

And run this command to get the MySQL version

SHOW variables LIKE "%version%";


Ubuntu MySQL server guide

Categories:  Web server

Tags:  aptitude , mysql , secure , ubuntu

comments powered by Disqus