Skip to content

Instantly share code, notes, and snippets.

@Matrixbirds
Last active May 18, 2018 02:34
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 Matrixbirds/33161e413302fcc409f7be19f5cbac97 to your computer and use it in GitHub Desktop.
Save Matrixbirds/33161e413302fcc409f7be19f5cbac97 to your computer and use it in GitHub Desktop.
安装脚本
sudo apt install autoconf bison build-essential libssl-dev libyaml-dev \
libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev git -y
vim ~/.bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
. ~/.bashrc
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
GRANT type_of_permission ON database_name.table_name TO ‘username’@'localhost’;
REVOKE type_of_permission ON database_name.table_name FROM ‘username’@‘localhost’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment