Skip to content

Instantly share code, notes, and snippets.

@badhonhitech
Created December 1, 2019 17:59
Show Gist options
  • Save badhonhitech/60f7e88ba4b589100dbdb0e59170ce0d to your computer and use it in GitHub Desktop.
Save badhonhitech/60f7e88ba4b589100dbdb0e59170ce0d to your computer and use it in GitHub Desktop.
MySQL Install Linux
# This commands will setup MySQL and create a DB
sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE badhon DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON badhon.* TO 'buser'@'localhost' IDENTIFIED BY 'B@Dho2019P@';
FLUSH PRIVILEGES;
EXIT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment