Skip to content

Instantly share code, notes, and snippets.

@MarinhoFeliphe
Last active February 18, 2021 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarinhoFeliphe/7d0e7018217da39c9ea6f9bfcb1f3b38 to your computer and use it in GitHub Desktop.
Save MarinhoFeliphe/7d0e7018217da39c9ea6f9bfcb1f3b38 to your computer and use it in GitHub Desktop.
How to Install MySQL 5.7 for Ubuntu 18.04

Install mysql 5.7 for Ubuntu 18.04

  • On your home path, create a folder mkdir mysql-ws to download mysql files
  • On your download folder cd mysql-ws, download the mysql bundle. wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.28-1ubuntu18.04_amd64.deb-bundle.tar
  • Extract tar file
    • tar -xvf mysql-server_5.7.28-1ubuntu18.04_amd64.deb-bundle.tar
    • The command above, will extract in the current folder.
  • Delete some unnecessary files rm -rf mysql-testsuite_5.7.28-1ubuntu18.04_amd64.deb mysql-community-test_5.7.28-1ubuntu18.04_amd64.deb
  • To install mysql, run sudo dpkg -i mysql-*deb
    • If you have a problem with libmecab2 or libaio1, run the follow command sudo apt --fix-broken install
    • Configure root password.
  • Check mysql access sudo mysql -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment