Skip to content

Commit

Permalink
chore:9月11日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Sep 11, 2024
1 parent ce225cc commit e1fcc07
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3,841 deletions.
2 changes: 2 additions & 0 deletions docs/javascript/2022-12-24-mysql主从.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ grant all privileges on *.* to 'root'@'%';

grant all privileges on *.* to 'root'@'localhost';



// 新建一个用户
CREATE USER 'course'@'localhost' IDENTIFIED BY '123456';

Expand Down
1 change: 0 additions & 1 deletion docs/javascript/2023-07-31-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pip --version
pip install xxxxxxxx
```


## 列表项目中的依赖项目

```
Expand Down
29 changes: 29 additions & 0 deletions docs/javascript/2024-09-03-mysql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 创建用户
CREATE USER 'dvs'@'localhost' IDENTIFIED BY 'M9y2512!!!';

// 给用户授权某个数据库
grant all privileges on dvsv4.* to 'dvs'@'localhost';

// 刷新权限
flush privileges;


## docker日志
```
// 查看容器的日志
docker logs xxx
// 查看容器的最新100条日志
docker logs --tail 100 xxx
// 实时查看最新的日志
docker logs -f --tail 100 xxx
```

## 确保服务器正常访问外网
```
//公共的dns
ping 8.8.8.8
```
Loading

0 comments on commit e1fcc07

Please sign in to comment.