Skip to content

Instantly share code, notes, and snippets.

@MnHung
Last active February 15, 2017 03:16
Show Gist options
  • Save MnHung/692ba8cc8783a96c03b210a12ec1e9fe to your computer and use it in GitHub Desktop.
Save MnHung/692ba8cc8783a96c03b210a12ec1e9fe to your computer and use it in GitHub Desktop.
### install mysql
sudo apt-get update
sudo apt-get install mysql-server
# if you ignore the root's password setting, do
# sudo mysql_secure_installation
## under mysql 5.7, do extra:
# sudo mysql_install_db
# note: mysql 5.5 on ubuntu 14, mysql 5.7 on ubuntu 16
## done, then check
# with 5.5
service mysql status
# with 5.7
systemctl status mysql.service
# with both version, you can do extra check by mysqladmin
mysqladmin -p -u root version
### config mysql (TODO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment