diff --git a/docs/daily/2023-10.md b/docs/daily/2023-10.md index b9a6ec0bf3..df5ff3079f 100644 --- a/docs/daily/2023-10.md +++ b/docs/daily/2023-10.md @@ -1,3 +1,70 @@ +## 10月10日 +- 查看数据库的大小 + ``` + SELECT + table_schema AS 'Database', + ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'Size (MB)' + FROM + information_schema.tables + GROUP BY + table_schema; + ``` +- 只查看某个特定的数据库 + ``` + SELECT + table_schema AS 'Database', + ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'Size (MB)' + FROM + information_schema.tables + WHERE + table_schema = 'your_database_name' + GROUP BY + table_schema; + ``` + +## 10月9日 +- vueuse + - https://vueuse.org/core/useStorage/ +## 10月8日 +- uni-app-x https://uniapp.dcloud.net.cn/uni-app-x/ +- linux通过命令查看自己的公网ip + ``` + curl ifconfig.me + ``` +- 定时跳转钉钉 + - https://github.com/SmileZXLee/uni-dingTalkHelper + +- docker容器中代理接口地址 + ``` + location /so/api/v1 { + proxy_pass http://101.35.211.235:3001/api/v1; + } + ``` +- 脚本一键停止容器、删除容器、重新创建容器 执行容器 + run.sh脚本下的代码 + ``` + #!/bin/bash + container="vue-course" + + podman stop $container + + echo "停止docker容器:$container" + + podman rm $container + + echo "删除docker容器:$container" + + podman-compose up -d + ``` + + 通过sh run.sh运行 + 执行后报错: Error: no container with name or ID "vue-course\r\r" found: no such container + ``` + vim run.sh + :set fileformat=unix + :wq + ``` + ## 10月7日 - linux 部署clash - https://github.com/wanhebin/clash-for-linux diff --git a/docs/javascript/2023-08-25-dotnetcore.md b/docs/javascript/2023-08-25-dotnetcore.md index fc7c83ba8e..ece6cd8ea0 100644 --- a/docs/javascript/2023-08-25-dotnetcore.md +++ b/docs/javascript/2023-08-25-dotnetcore.md @@ -11,6 +11,12 @@ dotnet-ef migrations add XXXX // 同步到数据库 dotnet-ef database update +// 超过一个dbcontext就需要指定 + +dotnet-ef migrations add XXXX -c SecondContext + +dotnet-ef database update -c SecondContext + ``` diff --git a/docs/javascript/2023-10-09-mysql.md b/docs/javascript/2023-10-09-mysql.md new file mode 100644 index 0000000000..975dc2cd2d --- /dev/null +++ b/docs/javascript/2023-10-09-mysql.md @@ -0,0 +1,4 @@ +## 创建数据库 +``` +CREATE DATABASE `metadataly` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci'; +``` \ No newline at end of file