Skip to content

Instantly share code, notes, and snippets.

@debborafernandess
Last active March 22, 2017 17:53
Show Gist options
  • Save debborafernandess/c950a4aaee04a00cd0d0179ea271442a to your computer and use it in GitHub Desktop.
Save debborafernandess/c950a4aaee04a00cd0d0179ea271442a to your computer and use it in GitHub Desktop.
Install and run MySQL 5.7

Install and configure MySQL 5.7

First of all, follow this steps: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

Its necessary to set a root password

Additional steps:

  • Stop MySQL sudo /etc/init.d/mysql stop
  • Change mysql's inicialization file /etc/init.d/mysql:109 -> --skip-grant-tables
  • Start MySQL again sudo /etc/init.d/mysql start
  • In case of use gem mysql2, run sudo apt-get install libmysqlclient-dev because it is a dependency

Import tar.gz dump to MySQL

zcat ~/dump/dump.sql.gz| mysql -uroot -p database_name

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