Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Created June 17, 2017 20:08
Show Gist options
  • Save ofelix03/d075a79b8586734bb77eabf351e2a0d5 to your computer and use it in GitHub Desktop.
Save ofelix03/d075a79b8586734bb77eabf351e2a0d5 to your computer and use it in GitHub Desktop.
MySQL Tips

Installing MySQL

Run this command to install MySQL server, as well as the packages for the client and for the database common file:

sudo apt-get install mysql-server

NOTE: A dialog pops up for an optional root user password. (I advice you provide one).

Uninstalling MySQL Completely (Linux Systems)

Run the following commands:

  1. sudo apt-get remove --purge mysql-server mysql-client mysql-common
  2. sudo apt-get autoremove
  3. sudo apt-get autoclean
  4. sudo rm -rf /var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment