
mysql空磁盘挂卷问题
今天在tke上部署mysql pod,以为很简单。结果发现pod一直crash,查看日志发现是挂卷的问题: [ERROR] --initialize specified but the data directory has files in it. Aborting. 解决办法很简单,给mysql加上启动参数--ignore-db-dir=lost+found即可。 ...

今天在tke上部署mysql pod,以为很简单。结果发现pod一直crash,查看日志发现是挂卷的问题: [ERROR] --initialize specified but the data directory has files in it. Aborting. 解决办法很简单,给mysql加上启动参数--ignore-db-dir=lost+found即可。 ...

问题 上面的两个icon和详情超级链接,用margin/padding属性无法做到原型稿要求的样式。 解决方案 positiion The position property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky). ...

时间过的很快,转眼回到武汉已经一年了,上面那张《海宁皮革城》的照片是刚回来的时候拍的,现在已经关闭叫《方圆荟》了。 记得很清楚,我是2021年4月1号坐高铁回的武汉。想在上一个东家那里,混一个清明假再走的, ...

工作上遇到一个问题,好奇goalng的排列数Perm是怎么实现的,看了下源代码,写的很简洁。 使用了随机交换算法来得到一个排列组合。 1 2 3 4 5 package rand // import "math/rand" func Perm(n int) []int Perm returns, as a slice of n ints, a pseudo-random permutation of the integers in the half-open interval [0,n) from the default Source. 交换 本质上说就是交换m[i]和m[j],且i> j。 ...

上礼拜有人问我,如何从数组中选择和为n,长度为m的所有的子数组? 问题 输入 a = []int{10, 7, -5, 4, 8, 16, 70, -30, 91} m = 3, n = 15 输出 1 [[10 35 -30] [-5 4 16]] 答案 算法 这是一个典型的排列组合的问题,只要把Cn算出来然后做过滤就好,核心是数组组合的算法。 ...

填写某政府表格时候,需要把多个图片合并为一张图片。 用Photoshop应该很好解决,但是本地没有安装。于是网上查了一下用imageMagick也可以解决。 ...

在苹果电脑上使用终端security命令查看Wi-Fi密码: 1 security find-generic-password -wa 'your wifi-ssid' 在弹出的系统对话框中输入正确的用户名和密码,终端即可以看到Wi-Fi密码。 ...

updated: 好像是因为我安装了ripgrep所以会一直更新cargo-c依赖。 不知道为啥每次sudo port -v upgrade outdated 都会重新安装cargo-c, 进而会安装编译rust。 编译rust很费时间和CPU风扇。 ...

今天在hacker news上闲逛,又看到有人推销fish。心想马上就2022年了,不如换个shell耍耍。 其实早在2013年就接触过fish,那个时候自己比较菜,工作的时候很多bash脚本在fish上都不能使用,所以就放弃fish。 ...

总体来看clickhouse的ddl操作方式和mysql很像。比如use database_name, create user ... identified by ''等。 server docker run 启动clickhouse服务: ...
我的歌单