Last active
May 18, 2018 02:34
-
-
Save Matrixbirds/33161e413302fcc409f7be19f5cbac97 to your computer and use it in GitHub Desktop.
安装脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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