Skip to content

Commit

Permalink
chore:9月4日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Sep 4, 2024
1 parent ecb9e55 commit 5c27e7c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/daily/2024-09.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## 9月4日
cron vue3
- https://abichinger.github.io/vue-js-cron/demo.html
## 9月3日
- 在线figma 模板 https://bentogrids.com/
25 changes: 25 additions & 0 deletions docs/javascript/2023-11-15-docker-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
-e MYSQL_ROOT_PASSWORD=123456 -d mysql
```

## 创建一个无密码的容器
```
docker stop mysql-原来的容器
//创建一个新的MySQL容器,覆盖默认的命令
docker run --name mysql-temp -v /root/docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:8.0 --skip-grant-tables
//稍等片刻 进入容器,并直接进入mysql
docker exec -it mysql-temp mysql
# 5. 在MySQL提示符下,执行以下SQL命令来重置root密码
FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
FLUSH PRIVILEGES;
EXIT;
// 停止并删除临时容器
docker stop mysql-temp
docker rm mysql-temp
// 重新启动原始的MySQL容器(使用新密码)
docker start mysql-container
```

## 查看容器的ip地址
- docker inspect 容器id/容器name
```
Expand Down

0 comments on commit 5c27e7c

Please sign in to comment.