Skip to content

Instantly share code, notes, and snippets.

@linuxbastard
Forked from technosailor/update-mysql56.sh
Created September 23, 2016 15:36
Show Gist options
  • Save linuxbastard/67b990a0bee81950e3768e1ee7aad95f to your computer and use it in GitHub Desktop.
Save linuxbastard/67b990a0bee81950e3768e1ee7aad95f to your computer and use it in GitHub Desktop.
Updates VVV MySQL 5.5 to 5.6 -- Ubuntu 14.04
#!/bin/bash
# Usage: ./update-mysql56.sh
# Backup of all databases... JUST IN CASE
mysqldump --all-databases --single-transaction --events --user=root --password > ~/all_database_backup.sql
# Remove MySQL 5.5
sudo apt-get remove mysql-server
sudo apt-get autoremove
# Install MySQL 5.6
sudo apt-get install mysql-client-5.6 mysql-client-core-5.6
sudo apt-get install mysql-server-5.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment