接外包,有相关需求的可以联系我:Telegram | Email

WordPress网站数据库报错 Error establishing a database connection

最近搞了一下网站迁移,因为主从同步有问题就又重新迁移回去了,结果解决同步的时候不清楚咋把另一个网站的数据库连接给干出Error了。Error如图所示(Error establishing a database connection) 确定密码是否正确 进网站目录查看wp-config.php的数据库信息。 用数据库登录信息测试密码 mysql -uUsername -p 如能成功登录则去核查相关表的权限是否存在,不能则切root用户更......

Mysql从库报错-Got fatal error 1236

Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’ 解决办法: 首先停止从库同步: mysql> stop slave; 主库中关闭当前的二进制日志文件并创建一个新文件,新的二进制日志文件的名字在当前的二进制文件的编号上加1. mysql> flush logs; 查看主库状态,主要查......

如何安装以及用相关插件配置OBSIDIAN?

之前看人推荐logseq就尝试了一下,吐槽跨设备同步难搞,然后被人种草了Obsidian,这几天使用下来感觉确实比logseq好用多了,第三方插件同步虽然有点冲突但大体上还好。现在考虑怎么去合理规划tag以及wiznote笔记的迁移,虽说感觉也不能完全替代wiznote。这个还是比较适合纯文本记录,对文件等等同步不太友好。 安装 这个感觉没啥可说的,就去官网:htt......

如何在安卓APP中添加分享按钮?

最近想给一个APP添加分享屏幕截图的功能,就尝试找了一圈相关的Package,最后找倒是没找到,倒是在StackOverflow找到了一个解决方法。 https://stackoverflow.com/questions/30196965/how-to-take-a-screenshot-of-a-current-activity-and-then-share-it 布局及相关权限 AndroidManifest.xml权限添加 <!-- STORAGE PERMISSION FOR SCREEN SHOT--> <uses-permissi......

K8S单节点部署

最近尝试学了一下K8S,感觉还行吧!只是对于我自己的项目来说还没必要,弄个docker就不错了,集群对于小项目来说部署有点夸张。个人看了这几天发现官方的交互式教程还是挺爽的,简单了解还是可行的。我这就弄个从头到尾的单节点部署让大家了解一下,可能稍微有点乱。 官方教程:https://kubernetes.io/zh/docs/home/ 安装 docker 安装 安装 curl -fsSL https://get.docker.com | bash -s d......

Multiply Strings

Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Note: You must not use any built-in BigInteger library or convert the inputs to integer directly.【The sadest things which I can found the fastest soultion in leetcode break this rule.】 https://leetcode.com/problems/multiply-strings/ Solut......

配置 Pod 以使用 PersistentVolume 作为存储

最近了解这个k8s在PVC存储这儿卡了两天,今天终于算是大概搞明白是个怎么回事了。 以下是该过程的总结: 创建由物理存储支持的 PersistentVolume。你不会将卷与任何 Pod 关联。 创建一个 PersistentVolumeClaim, 它将自动绑定到合适的 PersistentVolume。 创建一个使用 PersistentVolumeClaim 作为存储的 deployment https://kubernetes.io/zh/docs/tasks/configure-pod-container/con......

Interval List Intersections

You are given two lists of closed intervals, firstList and secondList, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval lists. A closed interval [a, b] (with a <= b) denotes the set of real numbers x with a <= x <= b. The inter......

Merge Intervals

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. https://leetcode.com/problems/merge-intervals/ Solution submit code class Solution: def merge(self, intervals: List[List[int]]) -> List[List[int]]: if len(intervals) =......

Remove Covered Intervals

Given an array intervals where intervals[i] = [li, ri] represent the interval [li, ri), remove all intervals that are covered by another interval in the list. The interval [a, b) is covered by the interval [c, d) if and only if c <= a and b <= d. Return the number of remaining intervals. https://leetcode.com/problems/remove-covered-intervals/ Solution submit c......


YouTube | B站

微信公众号

👉 NewsLetter ❤️ 邮箱订阅 👈

优惠码

阿里云国际版20美元
Vultr10美元
搬瓦工 | Bandwagon应该有折扣吧?
Just My SocksJMS9272283 【注意手动复制去跳转】
域名 | namesiloemperinter(1美元)
币安 币安