ubantu上配置開發環境

1. 安裝mysql

  • 安裝
sudo apt-get update
sudo apt-get install mysql-server
  • 配置安全設置密碼遠程登陸
sudo mysql_secure_installation 
參考:
https://blog.csdn.net/weixx3/article/details/80782479
https://blog.csdn.net/kong050kong/article/details/87898178
https://blog.csdn.net/zhangvalue/article/details/80705769
  • 查看數據庫狀態
systemctl status mysql
  • 登陸mysql,使用安全設置時的密碼
sudo mysql -u root -p
  • 修改root密碼
mysql> grant all privileges on *.* to root@localhost identified by "123456789";
  • 建立遠程登陸用的庫和用戶
mysql> create database db_workflows charset="utf8";
mysql> grant all privileges on db_workflows.* to sunxiuwen@"%"  identified by "123456";
  • 安裝可視化工具mysql-workbench
sudo apt-get install mysql-workbench
https://blog.csdn.net/swust5120166213/article/details/86436335
相關文章
相關標籤/搜索