Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Created March 6, 2014 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/9392658 to your computer and use it in GitHub Desktop.
Save janikvonrotz/9392658 to your computer and use it in GitHub Desktop.
Ubuntu: Install MySQL #MySQL #Markdown

Introduction

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

Requirements

  • Ubuntu server

Installation

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%";

Source

Ubuntu MySQL server guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment