Ubuntu18.04 关闭和开启图形用户界面

Ubuntu18.04 关闭和开启图形用户界面

sudo systemctl set-default multi-user.target
sudo reboot
sudo systemctl set-default graphical.target
sudo reboot

创建新用户

//创建新的用户
mysql > GRANT ALL PRIVILEGES ON demo_project_development.* TO 'rails_user'@'localhost' IDENTIFIED BY '1231';
Query OK, 0 rows affected, 1 warning (0.02 sec)

mysql> 
mysql>

mysql > GRANT ALL PRIVILEGES ON demo_project_test.* TO 'rails_user'@'localhost' IDENTIFIED BY '1231';

数数据库的配置

image.png
rails db:schema:dump

若有错误,错误修复如下:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

你可能感兴趣的:(Ubuntu18.04 关闭和开启图形用户界面)